| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (C) 2010 Google Inc. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>com.google.jsilver</groupId> |
| <artifactId>jsilver</artifactId> |
| <version>1.0.0</version> |
| <packaging>jar</packaging> |
| <name>JSilver</name> |
| <description>Pure-Java implementation of Clearsilver templating engine.</description> |
| <url>http://code.google.com/p/jsilver/</url> |
| <inceptionYear>2010</inceptionYear> |
| |
| <organization> |
| <name>Google</name> |
| <url>http://www.google.com/</url> |
| </organization> |
| |
| <licenses> |
| <license> |
| <name>The Apache Software License, Version 2.0</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| <distribution>repo</distribution> |
| </license> |
| </licenses> |
| |
| <issueManagement> |
| <system>Google-Code Issue Management</system> |
| <url>http://code.google.com/p/jsilver/issues/</url> |
| </issueManagement> |
| |
| <scm> |
| <url>scm:svn:http://jsilver.googlecode.com/svn/tags/jsilver-1.0.0</url> |
| <connection>scm:svn:https://jsilver.googlecode.com/svn/tags/jsilver-1.0.0</connection> |
| <developerConnection>scm:svn:https://jsilver.googlecode.com/svn/tags/jsilver-1.0.0</developerConnection> |
| </scm> |
| |
| <developers> |
| <developer> |
| <name>David Beaumont</name> |
| </developer> |
| <developer> |
| <id>bjdodson</id> |
| <name>Ben Dodson</name> |
| <email>bjdodson@gmail.com</email> |
| </developer> |
| </developers> |
| |
| <distributionManagement> |
| <snapshotRepository> |
| <id>sonatype-nexus-snapshots</id> |
| <name>Sonatype Nexus Snapshots</name> |
| <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| </snapshotRepository> |
| |
| <repository> |
| <id>sonatype-nexus-staging</id> |
| <name>Nexus Release Repository</name> |
| <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| </repository> |
| </distributionManagement> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| <javac.src.version>1.5</javac.src.version> |
| <javac.target.version>1.5</javac.target.version> |
| <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssZ</maven.build.timestamp.format> |
| <implementation.build>r${buildNumber}; ${maven.build.timestamp}</implementation.build> |
| </properties> |
| |
| <build> |
| <directory>build</directory> |
| <sourceDirectory>${basedir}/src</sourceDirectory> |
| <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| <plugins> |
| |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <configuration> |
| <tasks> |
| <copy file="${basedir}/sablecc/optimizations/AOptimizedMultipleCommand.java" todir="${basedir}/build/gen/com/google/clearsilver/jsilver/syntax/node" /> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.2</version> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <executable>java</executable> |
| <arguments> |
| <argument>-jar</argument> |
| <argument>sablecc/sablecc.jar</argument> |
| <argument>src/com/google/clearsilver/jsilver/syntax/jsilver.sablecc</argument> |
| <argument>-d</argument> |
| <argument>${basedir}/build/gen</argument> |
| </arguments> |
| <sourceRoot>${basedir}/build/gen</sourceRoot> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.4.3</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/build/classes</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/build/gen</directory> |
| <includes> |
| <include>**/*.dat</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>2.3.2</version> |
| <configuration> |
| <source>${javac.src.version}</source> |
| <target>${javac.target.version}</target> |
| <encoding>${project.build.sourceEncoding}</encoding> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.6</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.3.1</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| </manifest> |
| <manifestEntries> |
| <Implementation-Build>${implementation.build}</Implementation-Build> |
| <X-Compile-Source-JDK>${javac.src.version}</X-Compile-Source-JDK> |
| <X-Compile-Target-JDK>${javac.target.version}</X-Compile-Target-JDK> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-release-plugin</artifactId> |
| <version>2.1</version> |
| <configuration> |
| <mavenExecutorId>forked-path</mavenExecutorId> |
| <arguments>-Prelease</arguments> |
| <remoteTagging>false</remoteTagging> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <resources> |
| <resource> |
| <directory>${basedir}</directory> |
| <targetPath>META-INF</targetPath> |
| <includes> |
| <include>LICENSE</include> |
| <include>NOTICE</include> |
| </includes> |
| </resource> |
| |
| <resource> |
| <directory>${basedir}/res</directory> |
| </resource> |
| </resources> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>buildnumber-maven-plugin</artifactId> |
| <version>1.0-beta-4</version> |
| <executions> |
| <execution> |
| <phase>validate</phase> |
| <goals> |
| <goal>create</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <doCheck>true</doCheck> |
| <doUpdate>true</doUpdate> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.1.2</version> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| <configuration> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| </manifest> |
| <manifestEntries> |
| <Implementation-Build>${implementation.build}</Implementation-Build> |
| <X-Compile-Source-JDK>${javac.src.version}</X-Compile-Source-JDK> |
| <X-Compile-Target-JDK>${javac.target.version}</X-Compile-Target-JDK> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.7</version> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| </manifest> |
| <manifestEntries> |
| <Implementation-Build>${implementation.build}</Implementation-Build> |
| <X-Compile-Source-JDK>${javac.src.version}</X-Compile-Source-JDK> |
| <X-Compile-Target-JDK>${javac.target.version}</X-Compile-Target-JDK> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| <!-- |
| <configuration> |
| <bootclasspath>${sun.boot.class.path}</bootclasspath> |
| <doclet>com.google.doclava.Doclava</doclet> |
| <docletPath>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</docletPath> |
| <additionalparam> |
| -quiet |
| -stubs ${project.build.directory}/stubs |
| -hdf project.name "${project.name}" |
| -federate JDK http://download.oracle.com/javase/6/docs/api/index.html? |
| -federationxml JDK http://doclava.googlecode.com/svn/static/api/openjdk-6.xml |
| </additionalparam> |
| <useStandardDocletOptions>false</useStandardDocletOptions> |
| </configuration> |
| --> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-gpg-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <id>sign-artifacts</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>sign</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>r06</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.8.2</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| </project> |