| <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> |
| <parent> |
| <artifactId>velocity-engine-parent</artifactId> |
| <groupId>org.apache.velocity</groupId> |
| <version>2.0.0-SNAPSHOT</version> |
| </parent> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-assembly</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <packaging>pom</packaging> |
| <name>Apache Velocity Engine - Assemblies</name> |
| <description>Creates assemblies for Apache Velocity Engine</description> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.2-beta-5</version> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/all.xml</descriptor> |
| </descriptors> |
| <finalName>velocity-${version}</finalName> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>2.3.1</version> |
| <configuration> |
| <createChecksum>true</createChecksum> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-core</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-log4j</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-commons-logging</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-servlet</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-uberjar</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-examples</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| <profiles> |
| <profile> |
| <id>apache-release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.2-beta-5</version> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <goals> |
| <goal>attached</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/all.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.3</version> |
| <executions> |
| <execution> |
| <phase>deploy</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <mkdir |
| dir="${project.build.directory}/assemblies" /> |
| <copy |
| todir="${project.build.directory}/assemblies"> |
| <fileset |
| dir="${settings.localRepository}/org/apache/velocity/${project.artifactId}/${project.version}"> |
| <include |
| name="${project.artifactId}-${project.version}-all.zip*" /> |
| <include |
| name="${project.artifactId}-${project.version}-all.tar.gz*" /> |
| </fileset> |
| <mapper type="glob" |
| from="${project.artifactId}-*" |
| to="velocity-*" /> |
| </copy> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>wagon-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>deploy</phase> |
| <goals> |
| <goal>upload</goal> |
| </goals> |
| <configuration> |
| <fromDir>${project.build.directory}/assemblies</fromDir> |
| <includes>**</includes> |
| <toDir>${pom.version}</toDir> |
| <serverId>apache.build</serverId> |
| <url>scp://people.apache.org/www/people.apache.org/builds/velocity</url> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |