Author: rafale Date: Wed Jan 16 13:06:47 2008 New Revision: 612570 URL: http://svn.apache.org/viewvc?rev=612570&view=rev Log: Added a first draft on using profiles for compiling against 'maven2.0' or 'maven2.1'. I needed to currently skip the tests when using 'maven2.0' profile
Modified: maven/archetype/trunk/pom.xml Modified: maven/archetype/trunk/pom.xml URL: http://svn.apache.org/viewvc/maven/archetype/trunk/pom.xml?rev=612570&r1=612569&r2=612570&view=diff ============================================================================== --- maven/archetype/trunk/pom.xml (original) +++ maven/archetype/trunk/pom.xml Wed Jan 16 13:06:47 2008 @@ -16,59 +16,59 @@ ~ 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" +--> +<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"> + 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.maven</groupId> - <artifactId>maven-parent</artifactId> - <version>7</version> - <relativePath>../pom/maven/pom.xml</relativePath> - </parent> - - <groupId>org.apache.maven.archetype</groupId> - <artifactId>maven-archetype</artifactId> - <version>2.0-SNAPSHOT</version> - - <name>Maven Archetype</name> - <packaging>pom</packaging> - - <modules> - <module>archetype-testing</module> - <module>archetype-common</module> - <module>archetype-plugin</module> - <module>archetype-packaging</module> - </modules> - - <properties> - <mavenVersion>2.1-SNAPSHOT</mavenVersion> - <netbeans.hint.useExternalMaven>true</netbeans.hint.useExternalMaven> - </properties> - - <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>jira</system> - <url>http://jira.codehaus.org/browse/ARCHETYPE</url> - </issueManagement> - <inceptionYear>2007</inceptionYear> - - <dependencyManagement> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.maven</groupId> + <artifactId>maven-parent</artifactId> + <version>7</version> + <relativePath>../pom/maven/pom.xml</relativePath> + </parent> + + <groupId>org.apache.maven.archetype</groupId> + <artifactId>maven-archetype</artifactId> + <version>2.0-SNAPSHOT</version> + + <name>Maven Archetype</name> + <packaging>pom</packaging> + + <modules> + <module>archetype-testing</module> + <module>archetype-common</module> + <module>archetype-plugin</module> + <module>archetype-packaging</module> + </modules> + + <properties> + <netbeans.hint.useExternalMaven>true</netbeans.hint.useExternalMaven> + </properties> + + <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>jira</system> + <url>http://jira.codehaus.org/browse/ARCHETYPE</url> + </issueManagement> + <inceptionYear>2007</inceptionYear> + + <!--dependencyManagement> <dependencies> <dependency> <groupId>org.apache.maven.archetype</groupId> <artifactId>archetype-common</artifactId> <version>2.0-SNAPSHOT</version> </dependency> - <!-- Maven --> + <!- Maven -> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> @@ -109,7 +109,7 @@ </exclusion> </exclusions> </dependency> - <!-- Maven Artifact --> + <!- Maven Artifact -> <dependency> <groupId>org.apache.maven.artifact</groupId> <artifactId>maven-artifact</artifactId> @@ -184,154 +184,418 @@ <scope>test</scope> </dependency> </dependencies> - </dependencyManagement> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <reportSets> - <reportSet /> - </reportSets> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - <reportSets> - <reportSet /> - </reportSets> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <reportSets> - <reportSet /> - </reportSets> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <links> - <link>http://java.sun.com/j2ee/1.4/docs/api</link> - <link>http://java.sun.com/j2se/1.5.0/docs/api</link> - <link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> - <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> - <link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> - <link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> - <link>http://jakarta.apache.org/commons/logging/apidocs/</link> - <link>http://jakarta.apache.org/commons/pool/apidocs/</link> - <link>http://www.junit.org/junit/javadoc/</link> - <link>http://logging.apache.org/log4j/docs/api/</link> - <link>http://jakarta.apache.org/regexp/apidocs/</link> - <link>http://jakarta.apache.org/velocity/api/</link> - </links> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>taglist-maven-plugin</artifactId> - <reportSets> - <reportSet /> - </reportSets> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-plugin-plugin</artifactId> - <reportSets> - <reportSet /> - </reportSets> - </plugin> - </plugins> - </reporting> + </dependencyManagement--> - <profiles> - <profile> - <id>rafale-jalopy</id> - <build> + <reporting> <plugins> - <plugin> - <groupId>triemax</groupId> - <artifactId>jalopy-maven</artifactId> - <version>1.8-144</version> - <configuration> - <javadoc>false</javadoc> - <logLevel>warn</logLevel> - <profile>default</profile> - <convention>file:///home/rafale/projects/RafaleCodeConvention.xml</convention> - <includes> - <include>**/*.java</include> - </includes> - <excludes> - <exclude>**/testdata/**</exclude> - </excludes> - <environment></environment> - </configuration> - <executions> - <execution> - <phase>process-classes</phase> - <goals> - <goal>format</goal> - </goals> - </execution> - </executions> - </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-report-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <reportSets> + <reportSet /> + </reportSets> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <reportSets> + <reportSet /> + </reportSets> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <reportSets> + <reportSet /> + </reportSets> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <links> + <link>http://java.sun.com/j2ee/1.4/docs/api</link> + <link>http://java.sun.com/j2se/1.5.0/docs/api</link> + <link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> + <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> + <link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> + <link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> + <link>http://jakarta.apache.org/commons/logging/apidocs/</link> + <link>http://jakarta.apache.org/commons/pool/apidocs/</link> + <link>http://www.junit.org/junit/javadoc/</link> + <link>http://logging.apache.org/log4j/docs/api/</link> + <link>http://jakarta.apache.org/regexp/apidocs/</link> + <link>http://jakarta.apache.org/velocity/api/</link> + </links> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>taglist-maven-plugin</artifactId> + <reportSets> + <reportSet /> + </reportSets> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <reportSets> + <reportSet /> + </reportSets> + </plugin> </plugins> - </build> - </profile> - </profiles> - - <scm> - <connection>scm:svn:http://svn.apache.org/repos/asf/maven/sandbox/trunk/archetype</connection> - <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/trunk/archetype</developerConnection> - <url>http://svn.apache.org/viewcvs.cgi/maven/sandbox/trunk/archetype</url> - </scm> - - <build> - <pluginManagement> - <plugins> - <plugin> - <artifactId>maven-release-plugin</artifactId> - <configuration> - <tagBase>https://svn.apache.org/repos/asf/maven/sandbox/tags</tagBase> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.3</version> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <plugin> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.4</source> - <target>1.4</target> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.plexus</groupId> - <artifactId>plexus-maven-plugin</artifactId> - <version>1.3.5</version> - <executions> - <execution> - <goals> - <goal>descriptor</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> + </reporting> + + <profiles> + <profile> + <id>maven2.0</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <mavenVersion>2.0.8</mavenVersion> + <maven.test.skip>true</maven.test.skip> + </properties> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-common</artifactId> + <version>2.0-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>${mavenVersion}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>${mavenVersion}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-project</artifactId> + <version>${mavenVersion}</version> + <!--exclusions> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact-manager</artifactId> + </exclusion> + </exclusions--> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-core</artifactId> + <version>${mavenVersion}</version> + <!--exclusions> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact-manager</artifactId> + </exclusion> + </exclusions--> + </dependency> + + <dependency> + <groupId>org.apache.maven.artifact</groupId> + <artifactId>maven-artifact</artifactId> + <version>3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + <version>1.4.6</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + <version>1.0-alpha-40</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-interactivity-api</artifactId> + <version>1.0-alpha-5</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-velocity</artifactId> + <version>1.1.3</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.3.1</version> + </dependency> + <dependency> + <groupId>dom4j</groupId> + <artifactId>dom4j</artifactId> + <version>1.6.1</version> + </dependency> + <dependency> + <groupId>jdom</groupId> + <artifactId>jdom</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>velocity</groupId> + <artifactId>velocity</artifactId> + <version>1.4</version> + </dependency> + <dependency> + <groupId>net.sourceforge.jchardet</groupId> + <artifactId>jchardet</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>3.2</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-plugin-testing-harness</artifactId> + <version>1.0-beta-1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-file</artifactId> + <version>1.0-alpha-6</version> + <scope>test</scope> + </dependency> + </dependencies> + </dependencyManagement> + </profile> + <profile> + <id>maven2.1</id> + <properties> + <mavenVersion>2.1-SNAPSHOT</mavenVersion> + </properties> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-common</artifactId> + <version>2.0-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>${mavenVersion}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>${mavenVersion}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-project</artifactId> + <version>${mavenVersion}</version> + <exclusions> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact-manager</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-core</artifactId> + <version>${mavenVersion}</version> + <exclusions> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact-manager</artifactId> + </exclusion> + </exclusions> + </dependency> + + <dependency> + <groupId>org.apache.maven.artifact</groupId> + <artifactId>maven-artifact</artifactId> + <version>3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + <version>1.4.6</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + <version>1.0-alpha-40</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-interactivity-api</artifactId> + <version>1.0-alpha-5</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-velocity</artifactId> + <version>1.1.3</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.3.1</version> + </dependency> + <dependency> + <groupId>dom4j</groupId> + <artifactId>dom4j</artifactId> + <version>1.6.1</version> + </dependency> + <dependency> + <groupId>jdom</groupId> + <artifactId>jdom</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>velocity</groupId> + <artifactId>velocity</artifactId> + <version>1.4</version> + </dependency> + <dependency> + <groupId>net.sourceforge.jchardet</groupId> + <artifactId>jchardet</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>3.2</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-plugin-testing-harness</artifactId> + <version>1.0-beta-1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-file</artifactId> + <version>1.0-alpha-6</version> + <scope>test</scope> + </dependency> + </dependencies> + </dependencyManagement> + </profile> + <profile> + <id>rafale-jalopy</id> + <build> + <plugins> + <plugin> + <groupId>triemax</groupId> + <artifactId>jalopy-maven</artifactId> + <version>1.8-144</version> + <configuration> + <javadoc>false</javadoc> + <logLevel>warn</logLevel> + <profile>default</profile> + <convention>file:///home/rafale/projects/RafaleCodeConvention.xml</convention> + <includes> + <include>**/*.java</include> + </includes> + <excludes> + <exclude>**/testdata/**</exclude> + </excludes> + <environment></environment> + </configuration> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>format</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/maven/sandbox/trunk/archetype</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/trunk/archetype</developerConnection> + <url>http://svn.apache.org/viewcvs.cgi/maven/sandbox/trunk/archetype</url> + </scm> + + <build> + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-release-plugin</artifactId> + <configuration> + <tagBase>https://svn.apache.org/repos/asf/maven/sandbox/tags</tagBase> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.3</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.4</source> + <target>1.4</target> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-maven-plugin</artifactId> + <version>1.3.5</version> + <executions> + <execution> + <goals> + <goal>descriptor</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project>