| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <artifactId>velocity-tools-parent</artifactId> |
| <groupId>org.apache.velocity</groupId> |
| <version>3.0-SNAPSHOT</version> |
| </parent> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-tools-assembly</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache Velocity Tools - Assembly</name> |
| <description>Assembly building for Velocity Tools.</description> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.6</version> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/all.xml</descriptor> |
| </descriptors> |
| <finalName>velocity-tools-${project.version}</finalName> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>2.5.2</version> |
| <configuration> |
| <createChecksum>true</createChecksum> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-tools-uberjar</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-tools-view-jsp</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-tools-xml</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-tools-examples-simple</artifactId> |
| <version>${project.version}</version> |
| <type>war</type> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-tools-examples-showcase</artifactId> |
| <version>${project.version}</version> |
| <type>war</type> |
| <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.6</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.8</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-tools-*" /> |
| </copy> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>wagon-maven-plugin</artifactId> |
| <version>1.0</version> |
| <executions> |
| <execution> |
| <phase>deploy</phase> |
| <goals> |
| <goal>upload</goal> |
| </goals> |
| <configuration> |
| <fromDir>${project.build.directory}/assemblies</fromDir> |
| <includes>**</includes> |
| <toDir>${project.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> |