r1782 - in trunk: . src/it src/it/aggregate-add-third-party src/it/aggregate-add-third-party/child1 src/it/aggregate-add-third-party/child2
Author: tchemit Date: 2010-06-26 11:53:04 +0200 (Sat, 26 Jun 2010) New Revision: 1782 Url: http://nuiton.org/repositories/revision/maven-license-plugin/1782 Log: add integration test for aggregate-add-third-party mojo Added: trunk/src/it/aggregate-add-third-party/ trunk/src/it/aggregate-add-third-party/child1/ trunk/src/it/aggregate-add-third-party/child1/pom.xml trunk/src/it/aggregate-add-third-party/child2/ trunk/src/it/aggregate-add-third-party/child2/pom.xml trunk/src/it/aggregate-add-third-party/invoker.properties trunk/src/it/aggregate-add-third-party/pom.xml trunk/src/it/aggregate-add-third-party/verify.groovy Modified: trunk/pom.xml trunk/src/it/settings.xml Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-06-26 09:32:52 UTC (rev 1781) +++ trunk/pom.xml 2010-06-26 09:53:04 UTC (rev 1782) @@ -421,6 +421,7 @@ <artifactId>maven-invoker-plugin</artifactId> <configuration> <pomIncludes> + <pomInclude>aggregate-add-third-party/pom.xml</pomInclude> <pomInclude>add-third-party/no-deps/pom.xml</pomInclude> <pomInclude>add-third-party/with-deps/pom.xml</pomInclude> <pomInclude>update-file-header/pom.xml</pomInclude> Added: trunk/src/it/aggregate-add-third-party/child1/pom.xml =================================================================== --- trunk/src/it/aggregate-add-third-party/child1/pom.xml (rev 0) +++ trunk/src/it/aggregate-add-third-party/child1/pom.xml 2010-06-26 09:53:04 UTC (rev 1782) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>org.nuiton.license.test</groupId> + <artifactId>test-aggregate-add-third-party</artifactId> + <version>@pom.version@</version> + </parent> + <artifactId>test-aggregate-add-third-party-child1</artifactId> + + <name>License Test :: aggregate-add-third-party - child 1</name> + + <dependencies> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1.1</version> + </dependency> + </dependencies> + +</project> + + Property changes on: trunk/src/it/aggregate-add-third-party/child1/pom.xml ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/src/it/aggregate-add-third-party/child2/pom.xml =================================================================== --- trunk/src/it/aggregate-add-third-party/child2/pom.xml (rev 0) +++ trunk/src/it/aggregate-add-third-party/child2/pom.xml 2010-06-26 09:53:04 UTC (rev 1782) @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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.nuiton.license.test</groupId> + <artifactId>test-aggregate-add-third-party</artifactId> + <version>@pom.version@</version> + </parent> + <artifactId>test-aggregate-add-third-party-child2</artifactId> + + <name>License Test :: aggregate-add-third-party - child 2</name> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> + +</project> + + Property changes on: trunk/src/it/aggregate-add-third-party/child2/pom.xml ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/src/it/aggregate-add-third-party/invoker.properties =================================================================== --- trunk/src/it/aggregate-add-third-party/invoker.properties (rev 0) +++ trunk/src/it/aggregate-add-third-party/invoker.properties 2010-06-26 09:53:04 UTC (rev 1782) @@ -0,0 +1,21 @@ +# A comma or space separated list of goals/phases to execute, may +# specify an empty list to execute the default goal of the IT project +invoker.goals=license:aggregate-add-third-party + +# Optionally, a list of goals to run during further invocations of Maven +#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run + +# A comma or space separated list of profiles to activate +#invoker.profiles=run-all run-once + +# The value for the environment variable MAVEN_OPTS +#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m + +# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never" +invoker.failureBehavior=fail-at-end + +# The expected result of the build, possible values are "success" (default) and "failure" +#invoker.buildResult=success + +# A boolean value controlling the -N flag, defaults to "false" +#invoker.nonRecursive=false Property changes on: trunk/src/it/aggregate-add-third-party/invoker.properties ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/src/it/aggregate-add-third-party/pom.xml =================================================================== --- trunk/src/it/aggregate-add-third-party/pom.xml (rev 0) +++ trunk/src/it/aggregate-add-third-party/pom.xml 2010-06-26 09:53:04 UTC (rev 1782) @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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.nuiton.license.test</groupId> + <artifactId>test-aggregate-add-third-party</artifactId> + <version>@pom.version@</version> + + <modules> + <module>child1</module> + <module>child2</module> + </modules> + + <name>License Test :: aggregate-add-third-party</name> + + <packaging>pom</packaging> + + <properties> + + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <license.generateBundle>true</license.generateBundle> + <license.verbose>true</license.verbose> + </properties> + + <!--build> + + <plugins> + + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-license-plugin</artifactId> + <version>@pom.version@</version> + <executions> + <execution> + <goals> + <goal>aggregate-add-third-party</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build--> + +</project> + + Property changes on: trunk/src/it/aggregate-add-third-party/pom.xml ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/src/it/aggregate-add-third-party/verify.groovy =================================================================== --- trunk/src/it/aggregate-add-third-party/verify.groovy (rev 0) +++ trunk/src/it/aggregate-add-third-party/verify.groovy 2010-06-26 09:53:04 UTC (rev 1782) @@ -0,0 +1,44 @@ + +file = new File(basedir, 'target/generated-sources/license/THIRD-PARTY.txt'); +assert file.exists(); +content = file.text; +assert !content.contains( 'the project has no dependencies.' ); +assert content.contains( '(Common Public License Version 1.0) JUnit (junit:junit:4.8.1 - http://junit.org)' ); +assert content.contains( '(The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)' ); + +file = new File(basedir, 'target/generated-sources/license/META-INF/test-aggregate-add-third-party-THIRD-PARTY.txt'); +assert file.exists(); +content = file.text; +assert !content.contains( 'the project has no dependencies.' ); +assert content.contains( '(Common Public License Version 1.0) JUnit (junit:junit:4.8.1 - http://junit.org)' ); +assert content.contains( '(The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)' ); + +file = new File(basedir, 'child1/target/generated-sources/license/THIRD-PARTY.txt'); +assert file.exists(); +content = file.text; +assert !content.contains( 'the project has no dependencies.' ); +assert content.contains( '(The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)' ); +assert !content.contains( '(Common Public License Version 1.0) JUnit (junit:junit:4.8.1 - http://junit.org)' ); + +file = new File(basedir, 'child1/target/generated-sources/license/META-INF/test-aggregate-add-third-party-child1-THIRD-PARTY.txt'); +assert file.exists(); +content = file.text; +assert !content.contains( 'the project has no dependencies.' ); +assert content.contains( '(The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)' ); +assert !content.contains( '(Common Public License Version 1.0) JUnit (junit:junit:4.8.1 - http://junit.org)' ); + +file = new File(basedir, 'child2/target/generated-sources/license/THIRD-PARTY.txt'); +assert file.exists(); +content = file.text; +assert !content.contains( 'the project has no dependencies.' ); +assert content.contains( '(Common Public License Version 1.0) JUnit (junit:junit:4.8.1 - http://junit.org)' ); +assert !content.contains( '(The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)' ); + +file = new File(basedir, 'child2/target/generated-sources/license/META-INF/test-aggregate-add-third-party-child2-THIRD-PARTY.txt'); +assert file.exists(); +content = file.text; +assert !content.contains( 'the project has no dependencies.' ); +assert content.contains( '(Common Public License Version 1.0) JUnit (junit:junit:4.8.1 - http://junit.org)' ); +assert !content.contains( '(The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)' ); + +return true; Property changes on: trunk/src/it/aggregate-add-third-party/verify.groovy ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Modified: trunk/src/it/settings.xml =================================================================== --- trunk/src/it/settings.xml 2010-06-26 09:32:52 UTC (rev 1781) +++ trunk/src/it/settings.xml 2010-06-26 09:53:04 UTC (rev 1782) @@ -53,4 +53,8 @@ </pluginRepositories> </profile> </profiles> + + <pluginGroups> + <pluginGroup>org.nuiton</pluginGroup> + </pluginGroups> </settings>
participants (1)
-
tchemit@users.nuiton.org