blob: b3d545775172bbbd9459de25a382ae408e31fd7c [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
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>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>13</version>
</parent>
<groupId>org.apache.turbine</groupId>
<artifactId>turbine-parent</artifactId>
<packaging>pom</packaging>
<!-- TODO: dummy version. In Maven 2.1, this will be auto-versioned being a generic parent -->
<version>3</version>
<name>Turbine POM</name>
<description>
The parent POM for the Apache Turbine and Fulcrum project.
</description>
<url>http://turbine.apache.org</url>
<inceptionYear>2011</inceptionYear>
<!-- Now required by versions plugin -->
<prerequisites>
<maven>2.2.1</maven>
</prerequisites>
<issueManagement>
<system>jira</system>
<url>http://issues.apache.org/jira/browse/TRB</url>
</issueManagement>
<!--
This section *must* be overwritten by subprojects. It is only to allow
a release of the turbine-parent POM.
-->
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/turbine/maven/turbine-parent/tags/turbine-parent-3</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/turbine/maven/turbine-parent/tags/turbine-parent-3</developerConnection>
<url>http://svn.apache.org/viewcvs/turbine/maven/turbine-parent/tags/turbine-parent-3</url>
</scm>
<mailingLists>
<mailingList>
<name>Turbine Dev List</name>
<subscribe>dev-subscribe@turbine.apache.org</subscribe>
<unsubscribe>dev-unsubscribe@turbine.apache.org</unsubscribe>
<post>dev@turbine.apache.org</post>
<archive>http://mail-archives.apache.org/mod_mbox/turbine-dev/</archive>
</mailingList>
<mailingList>
<name>Turbine User List</name>
<subscribe>user-subscribe@turbine.apache.org</subscribe>
<unsubscribe>user-unsubscribe@turbine.apache.org</unsubscribe>
<post>user@turbine.apache.org</post>
<archive>http://mail-archives.apache.org/mod_mbox/turbine-user/</archive>
</mailingList>
</mailingLists>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${maven.compile.source}</source>
<target>${maven.compile.target}</target>
<encoding>${turbine.encoding}</encoding>
<fork>${turbine.compiler.fork}</fork>
<compilerVersion>${turbine.compiler.compilerVersion}</compilerVersion>
<executable>${turbine.compiler.javac}</executable>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${turbine.javadoc.version}</version>
<configuration>
<!-- keep only errors and warnings -->
<quiet>true</quiet>
<encoding>${turbine.encoding}</encoding>
<docEncoding>${turbine.docEncoding}</docEncoding>
<notimestamp>true</notimestamp>
<links>
<link>${turbine.javadoc.java.link}</link>
<link>${turbine.javadoc.javaee.link}</link>
</links>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>${turbine.resourceEncoding}</encoding>
</configuration>
</plugin>
<!-- Apache parent: scm -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${turbine.site.version}</version>
<configuration>
<!-- don't deploy site with maven-site-plugin -->
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${turbine.surefire.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- org.apache.maven.plugins, alpha order by artifact id -->
<plugin>
<!-- build the source and binary distribution packages -->
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</plugin>
<plugin>
<!-- generate the Eclipse project files -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
</configuration>
</plugin>
<plugin>
<!-- generate the IntelliJ project files -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-idea-plugin</artifactId>
<version>2.2</version>
<configuration>
<jdkLevel>${maven.compile.source}</jdkLevel>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Specification-Title>${project.name}</Specification-Title>
<Specification-Version>${project.version}</Specification-Version>
<Specification-Vendor>${project.organization.name}</Specification-Vendor>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
<Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
<Implementation-Build>${implementation.build}</Implementation-Build>
<X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
<X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<jvm>${turbine.surefire.java}</jvm>
</configuration>
</plugin>
<plugin> <!-- Thanks to Apache Commons -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<content>${project.reporting.outputDirectory}</content>
<pubScmUrl>scm:svn:${turbine.scmPubUrl}</pubScmUrl>
<checkoutDirectory>${turbine.scmPubCheckoutDirectory}</checkoutDirectory>
<tryUpdate>true</tryUpdate>
</configuration>
<executions>
<execution>
<id>scm-publish</id>
<phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
<goals>
<goal>publish-scm</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<!-- N.B. plugins defined here in the <reporting> section ignore what's defined in <pluginManagement>
in the <build> section above, so we have to define the versions here. -->
<plugins>
<!-- org.apache.maven.plugins, alpha order by artifact id -->
<plugin>
<!-- generate the changes report from changes.xml -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>${turbine.changes.version}</version>
<reportSets>
<reportSet>
<reports>
<report>changes-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<threshold>Normal</threshold>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${turbine.javadoc.version}</version>
<configuration>
<!-- keep only errors and warnings -->
<quiet>true</quiet>
<source>${maven.compile.source}</source>
<encoding>${turbine.encoding}</encoding>
<docEncoding>${turbine.docEncoding}</docEncoding>
<notimestamp>true</notimestamp>
<linksource>true</linksource>
<links>
<link>${turbine.javadoc.java.link}</link>
<link>${turbine.javadoc.javaee.link}</link>
</links>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>${turbine.jxr.version}</version>
</plugin>
<plugin>
<!-- generate the PMD reports -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.5</version>
<configuration>
<minimumTokens>200</minimumTokens>
<targetJdk>${maven.compile.source}</targetJdk>
<rulesets>
<ruleset>/rulesets/basic.xml</ruleset>
<ruleset>/rulesets/finalizers.xml</ruleset>
<ruleset>/rulesets/imports.xml</ruleset>
<ruleset>/rulesets/unusedcode.xml</ruleset>
</rulesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${turbine.project-info.version}</version>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${turbine.site.version}</version>
<configuration>
<!-- Exclude the navigation file for Maven 1 sites
and the changes file used by the changes-plugin,
as they interfere with the site generation. -->
<moduleExcludes>
<xdoc>navigation.xml,changes.xml</xdoc>
</moduleExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${turbine.surefire.version}</version>
</plugin>
<plugin>
<!-- get test coverage for regression tests -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
<version>2.0-beta-2</version>
</plugin>
<plugin>
<!-- check the Apache Licence in all source files -->
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${turbine.rat.version}</version>
</plugin>
<plugin>
<!-- generate the tag list report -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.1</version>
</plugin>
</plugins>
</reporting>
<profiles>
<!-- Allow overriding the target repository (Thanks to Apache Commons) -->
<profile>
<id>test-deploy</id>
<properties>
<altDeploymentRepository>id::default::file:target/deploy</altDeploymentRepository>
</properties>
</profile>
<!-- profile to update the Apache parent pom profile of the same name
to better suit the requirements of Apache Turbine. (Thanks to Apache Commons) -->
<profile>
<id>apache-release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<releaseProfiles>apache-release</releaseProfiles>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<configuration>
<createChecksum>true</createChecksum>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<!-- Disable Apache Parent POM built-in source assembly -->
<executions>
<execution>
<id>source-release-assembly</id>
<configuration>
<skipAssembly>true</skipAssembly>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
Configure site plugin to support both Maven2 and Maven3, see:
http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Using_the_same_version_of_maven-site-plugin_for_both_Maven_2_and_Maven_3
Thanks to Apache Commons
-->
<profile>
<id>maven-3</id>
<activation>
<file>
<!-- The basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
<exists>${basedir}</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<dependencies>
<dependency>
<!-- add support for ssh/scp -->
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>${turbine.wagon-ssh.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<!-- Default configuration for compiler source and target JVM -->
<maven.compile.source>1.6</maven.compile.source>
<maven.compile.target>1.6</maven.compile.target>
<!-- Compiler and surefire plugin settings for "java" profiles -->
<turbine.compiler.fork>false</turbine.compiler.fork>
<turbine.compiler.compilerVersion>1.6</turbine.compiler.compilerVersion>
<turbine.compiler.javac>${JAVA_HOME}/bin/javac</turbine.compiler.javac>
<turbine.surefire.java>${JAVA_HOME}/bin/java</turbine.surefire.java>
<!-- Plugin versions (allows same value in reporting and build sections) -->
<turbine.surefire.version>2.14.1</turbine.surefire.version>
<turbine.surefire-report.version>2.14.1</turbine.surefire-report.version>
<turbine.javadoc.version>2.9</turbine.javadoc.version>
<turbine.rat.version>0.8</turbine.rat.version>
<turbine.changes.version>2.9</turbine.changes.version>
<turbine.jxr.version>2.3</turbine.jxr.version>
<turbine.project-info.version>2.7</turbine.project-info.version>
<turbine.wagon-ssh.version>2.3</turbine.wagon-ssh.version>
<turbine.site.version>3.3</turbine.site.version>
<!--
Encoding of Java source files: Make sure, that the compiler and
the javadoc generator use the right encoding. Subprojects may
overwrite this, if they are using another encoding.
-->
<turbine.encoding>UTF-8</turbine.encoding>
<turbine.docEncoding>${turbine.encoding}</turbine.docEncoding>
<turbine.resourceEncoding>${turbine.encoding}</turbine.resourceEncoding>
<!-- Define encoding for filtering -->
<project.build.sourceEncoding>${turbine.encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${turbine.encoding}</project.reporting.outputEncoding>
<!-- Javadoc link to Java API. Default is Java 1.6; components can override to other versions -->
<turbine.javadoc.java.link>http://download.oracle.com/javase/6/docs/api/</turbine.javadoc.java.link>
<turbine.javadoc.javaee.link>http://download.oracle.com/javaee/6/api/</turbine.javadoc.javaee.link>
<!-- build meta inf -->
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssZ</maven.build.timestamp.format>
<implementation.build>${scmBranch}@r${buildNumber};${maven.build.timestamp}</implementation.build>
<!-- scm publish plugin configuration -->
<turbine.site.cache>${user.home}/turbine-sites</turbine.site.cache>
<!-- value modules can override it -->
<turbine.site.path>${project.artifactId}</turbine.site.path>
<turbine.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/turbine/content/${turbine.site.path}</turbine.scmPubUrl>
<turbine.scmPubCheckoutDirectory>${turbine.site.cache}/${turbine.site.path}</turbine.scmPubCheckoutDirectory>
<!-- maven-surefire-plugin -->
<test>**/*Test</test>
</properties>
</project>