diff --git a/its/core-it-support/maven-it-archetype/pom.xml b/its/core-it-support/maven-it-archetype/pom.xml index 57f19318d0..5a1b66c75a 100644 --- a/its/core-it-support/maven-it-archetype/pom.xml +++ b/its/core-it-support/maven-it-archetype/pom.xml @@ -1,50 +1,28 @@ - - - - + 4.0.0 - org.apache.maven maven-parent 9 - org.apache.maven.its - maven-it-archetype + maven-it-sample-archetype 1.0-SNAPSHOT maven-archetype - + maven-it-sample-archetype - org.apache.maven.plugins - maven-archetypeng-plugin - 1.0-SNAPSHOT + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-4 - maven-archetypeng-plugin - 1.0-SNAPSHOT + maven-archetype-plugin + 2.0-alpha-4 true diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index 603116a3db..4aba45d73c 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,4 +1,4 @@ - + src/test/java @@ -14,13 +14,5 @@ **/*.xml - - - - .classpath - .project - out.txt - - \ No newline at end of file diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml b/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml index aec5a34927..a79c5b91a8 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml +++ b/its/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml @@ -1,21 +1,15 @@ - - - maven-integration-test-sample-archetype + + maven-it-sample - src\test\java\org\apache\maven\it\MavenITmngXXXXDescriptionOfProblemTest.java + src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java - - .classpath - .project - out.txt - - src\test\resources\mng-xxxx\checkstyle-assembly\pom.xml - src\test\resources\mng-xxxx\checkstyle-assembly\src\main\resources\rule_set.xml - src\test\resources\mng-xxxx\checkstyle-assembly\src\main\resources\stc_checks.xml - src\test\resources\mng-xxxx\checkstyle-test\pom.xml - src\test\resources\mng-xxxx\checkstyle-test\src\main\java\Class.java - src\test\resources\mng-xxxx\pom.xml - src\test\resources\mng-xxxx\readme.txt + src/test/resources/mng-xxxx/checkstyle-assembly/pom.xml + src/test/resources/mng-xxxx/checkstyle-assembly/src/main/resources/rule_set.xml + src/test/resources/mng-xxxx/checkstyle-assembly/src/main/resources/stc_checks.xml + src/test/resources/mng-xxxx/checkstyle-test/pom.xml + src/test/resources/mng-xxxx/checkstyle-test/src/main/java/Class.java + src/test/resources/mng-xxxx/pom.xml + src/test/resources/mng-xxxx/readme.txt - + \ No newline at end of file diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/pom.xml b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/pom.xml index e16f421c5e..2e89d757f3 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/pom.xml +++ b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/pom.xml @@ -1,5 +1,4 @@ - - 4.0.0 @@ -26,13 +24,13 @@ under the License. ${artifactId} ${version} - Maven Integration Tests + Maven Integration Test Sample org.apache.maven.shared maven-verifier - 1.0 + 1.2-SNAPSHOT org.apache.maven.its @@ -56,7 +54,6 @@ under the License. false - true diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java index 421786ef07..db2a28d1da 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java +++ b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java @@ -1,3 +1,6 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) package ${package}; /* @@ -23,9 +26,8 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.it.AbstractMavenIntegrationTestCase; -import org.apache.maven.it.Verifier; -import org.apache.maven.it.util.ResourceExtractor; +import ${package}.Verifier; +import ${package}.util.ResourceExtractor; /** * This is a sample integration test. The IT tests typically @@ -38,7 +40,7 @@ import org.apache.maven.it.util.ResourceExtractor; * phases. See more information inline in the code. * * @author Brian Fox - * @version $Id$ + * @version ${symbol_dollar}Id: MavenITmngXXXXDescriptionOfProblemTest.java 707999 2008-10-26 14:42:38Z bentmann ${symbol_dollar} */ public class MavenITmngXXXXDescriptionOfProblemTest extends AbstractMavenIntegrationTestCase @@ -72,9 +74,9 @@ public class MavenITmngXXXXDescriptionOfProblemTest * makes it easy to do this. */ verifier = new Verifier( testDir.getAbsolutePath() ); - verifier.deleteArtifact( "org.apache.maven.its.itsample", "parent", "1.0", "pom" ); - verifier.deleteArtifact( "org.apache.maven.its.itsample", "checkstyle-test", "1.0", "jar" ); - verifier.deleteArtifact( "org.apache.maven.its.itsample", "checkstyle-assembly", "1.0", "jar" ); + verifier.deleteArtifact( "${package}s.itsample", "parent", "1.0", "pom" ); + verifier.deleteArtifact( "${package}s.itsample", "checkstyle-test", "1.0", "jar" ); + verifier.deleteArtifact( "${package}s.itsample", "checkstyle-assembly", "1.0", "jar" ); /* * The Command Line Options (CLI) are passed to the diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-assembly/pom.xml b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-assembly/pom.xml index 94215561d4..ca28c06d2c 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-assembly/pom.xml +++ b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-assembly/pom.xml @@ -1,3 +1,6 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) - + + @@ -99,7 +102,7 @@ --> - + - org.apache.maven.its.itsample + ${package}s.itsample checkstyle-assembly 1.0 @@ -64,7 +67,7 @@ under the License. stc_checks.xml true - ${project.build.directory}/checkstyle-cachefile + ${symbol_dollar}{project.build.directory}/checkstyle-cachefile true diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-test/src/main/java/Class.java b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-test/src/main/java/Class.java index 244f1e5605..89432ba683 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-test/src/main/java/Class.java +++ b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/checkstyle-test/src/main/java/Class.java @@ -1,3 +1,6 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) public class Class { diff --git a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/pom.xml b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/pom.xml index 0e85d6b873..fdd4147e34 100644 --- a/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/pom.xml +++ b/its/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/pom.xml @@ -1,3 +1,6 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' )