blob: 2ee44c84919f806d525bfec178ce2adbed260a41 [file] [log] [blame]
<?xml version="1.0"?>
<!--
$Id$
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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-assembly</artifactId>
<packaging>pom</packaging>
<name>Tiles Assembly</name>
<description>
Tiles Assembly
</description>
<parent>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-parent</artifactId>
<version>2.0.3</version>
</parent>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/tiles/framework/tags/tiles-2.0.3</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/tiles/framework/tags/tiles-2.0.3</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/tiles/framework/tags/tiles-2.0.3</url>
</scm>
<!-- FIXME Due to some bugs in assembly plugin 2.0.1 and 2.1, we needed to do
some workaraound. This is the situation:
2.0.1: has no "attached" goal; does not use the module directory during
deployment.
2.1: does not include dependencies correctly, so it is unusable.
So we are using the 2.0.1 version with a "trick", using different assembly
descriptors during release so it points to the correct directory.
Hopefully when 2.2 will be released, all these workarounds can be removed.-->
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.0.1</version>
<!-- <version>2.2</version> -->
<configuration>
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
<descriptor>src/main/assembly/src.xml</descriptor>
</descriptors>
<finalName>tiles-${version}</finalName>
<outputDirectory>target/assembly/out</outputDirectory>
<workDirectory>target/assembly/work</workDirectory>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.0.1</version>
<!-- <version>2.2</version> -->
<executions>
<execution>
<id>make-assembly</id>
<goals>
<goal>assembly</goal>
<!-- <goal>attached</goal> -->
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>src/main/assembly/bin_release.xml</descriptor>
<descriptor>src/main/assembly/src_release.xml</descriptor>
<!-- <descriptor>src/main/assembly/bin.xml</descriptor>
<descriptor>src/main/assembly/src.xml</descriptor> -->
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-api</artifactId>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-core</artifactId>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-test</artifactId>
<version>${pom.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.8</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
</project>