mirror of https://github.com/apache/maven.git
o Enabled ITs to choose different global settings depending on network needs
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@982028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
add8955b29
commit
4b3c364887
|
@ -53,7 +53,8 @@ under the License.
|
|||
Maven dependencies are added to the test class path.
|
||||
|
||||
If you're behind a proxy, use the system properties proxy.host, proxy.port, proxy.user and proxy.pass to specify the
|
||||
required proxy setup for the ITs.
|
||||
required proxy setup for the ITs. Alternatively, set the system property maven.it.central to a URL of a local
|
||||
repository manager that proxies the required artifacts.
|
||||
-->
|
||||
|
||||
<scm>
|
||||
|
@ -69,6 +70,7 @@ under the License.
|
|||
<!-- The (possibly instrumented copy of the) Maven distribution we actually use for the tests. -->
|
||||
<preparedMavenHome>${mavenHome}</preparedMavenHome>
|
||||
<!-- default properties used to filter the global settings -->
|
||||
<maven.it.central>http://repository.sonatype.org/content/repositories/public</maven.it.central>
|
||||
<proxy.active>false</proxy.active>
|
||||
<proxy.host>localhost</proxy.host>
|
||||
<proxy.port>80</proxy.port>
|
||||
|
@ -150,8 +152,8 @@ under the License.
|
|||
<value>${preparedMavenHome}</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>maven.it.global-settings</name>
|
||||
<value>${project.build.testOutputDirectory}/settings.xml</value>
|
||||
<name>maven.it.global-settings.dir</name>
|
||||
<value>${project.build.testOutputDirectory}</value>
|
||||
</property>
|
||||
</systemProperties>
|
||||
</configuration>
|
||||
|
@ -233,7 +235,6 @@ under the License.
|
|||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>false</skip>
|
||||
<forkMode>once</forkMode>
|
||||
<argLine>${surefireMemory}</argLine>
|
||||
<systemProperties combine.children="append">
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MavenIT0030DepPomDepMngtInheritanceTest
|
|||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0030" );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteArtifact( "org.apache.maven.it", "maven-it-it0030", "1.0-SNAPSHOT", "jar" );
|
||||
verifier.deleteArtifact( "org.apache.maven.it", "maven-it-it0030-child-hierarchy", "1.0-SNAPSHOT", "jar" );
|
||||
verifier.deleteArtifact( "org.apache.maven.it", "maven-it-it0030-child-project1", "1.0-SNAPSHOT", "jar" );
|
||||
|
|
|
@ -45,10 +45,8 @@ public class MavenITBootstrapTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/bootstrap" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.getCliOptions().add( "--settings" );
|
||||
verifier.getCliOptions().add( "settings.xml" );
|
||||
verifier.executeGoal( "test-compile" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
|
|
@ -87,7 +87,7 @@ public class MavenITmng0469ReportConfigTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0469/test2" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteDirectory( "target" );
|
||||
verifier.setAutoclean( false );
|
||||
if ( matchesVersionRange( "(,3.0-alpha-1)" ) )
|
||||
|
|
|
@ -69,7 +69,7 @@ public class MavenITmng1999DefaultReportsInheritanceTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-1999" );
|
||||
|
||||
Verifier verifier = newVerifier( new File( testDir, "child2" ).getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( new File( testDir, "child2" ).getAbsolutePath(), "remote" );
|
||||
verifier.deleteDirectory( "target" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.executeGoal( "validate" );
|
||||
|
|
|
@ -46,7 +46,7 @@ public class MavenITmng2135PluginBuildInReactorTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2135" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.deleteDirectory( "plugin/target" );
|
||||
verifier.deleteDirectory( "project/target" );
|
||||
|
|
|
@ -44,7 +44,7 @@ public class MavenITmng3221InfiniteForkingTest
|
|||
|
||||
try
|
||||
{
|
||||
verifier = newVerifier( reportDir.getAbsolutePath() );
|
||||
verifier = newVerifier( reportDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng3221", "maven-forking-report-plugin", "1", "jar" );
|
||||
|
||||
|
@ -53,7 +53,7 @@ public class MavenITmng3221InfiniteForkingTest
|
|||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "-Psite" );
|
||||
|
||||
|
@ -82,7 +82,7 @@ public class MavenITmng3221InfiniteForkingTest
|
|||
|
||||
try
|
||||
{
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng3221", "maven-forking-test-plugin", "1", "jar" );
|
||||
|
||||
|
@ -91,7 +91,7 @@ public class MavenITmng3221InfiniteForkingTest
|
|||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "-Pplugin" );
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public class MavenITmng3259DepsDroppedInMultiModuleBuildTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( new File( testDir, "parent" ).getAbsolutePath() );
|
||||
verifier = newVerifier( new File( testDir, "parent" ).getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
|
@ -57,7 +57,7 @@ public class MavenITmng3259DepsDroppedInMultiModuleBuildTest
|
|||
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MavenITmng3268MultipleDashPCommandLineTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "-Pprofile1,profile2" );
|
||||
verifier.getCliOptions().add( "-Pprofile3" );
|
||||
|
|
|
@ -57,7 +57,7 @@ public class MavenITmng3372DirectInvocationOfPluginsTest
|
|||
File project = new File( testBaseDir, "project" );
|
||||
File settingsFile = new File( testBaseDir, "settings.xml" );
|
||||
|
||||
Verifier verifier = newVerifier( plugin.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( plugin.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.deleteArtifacts( "org.apache.maven.its.mng3372" );
|
||||
|
||||
|
@ -84,7 +84,7 @@ public class MavenITmng3372DirectInvocationOfPluginsTest
|
|||
// file.
|
||||
File testBaseDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3372/dependency-tree" );
|
||||
|
||||
Verifier verifier = newVerifier( testBaseDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testBaseDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "-U" );
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MavenITmng3396DependencyManagementForOverConstrainedRangesTest
|
|||
String baseDir = "/mng-3396";
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), baseDir + "/dependencies" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteArtifact( GROUP_ID, "A", "1.0", "pom" );
|
||||
verifier.deleteArtifact( GROUP_ID, "A", "1.0", "jar" );
|
||||
verifier.deleteArtifact( GROUP_ID, "B", "1.0", "pom" );
|
||||
|
@ -51,7 +51,7 @@ public class MavenITmng3396DependencyManagementForOverConstrainedRangesTest
|
|||
|
||||
testDir = ResourceExtractor.simpleExtractResources( getClass(), baseDir + "/plugin" );
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteArtifact( GROUP_ID, "A", "1.0", "pom" );
|
||||
verifier.deleteArtifact( GROUP_ID, "A", "1.0", "jar" );
|
||||
verifier.deleteArtifact( GROUP_ID, "A", "3.0", "pom" );
|
||||
|
@ -64,7 +64,7 @@ public class MavenITmng3396DependencyManagementForOverConstrainedRangesTest
|
|||
|
||||
testDir = ResourceExtractor.simpleExtractResources( getClass(), baseDir + "/pluginuser" );
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteArtifact( GROUP_ID, "pluginuser", "1.0", "pom" );
|
||||
verifier.deleteArtifact( GROUP_ID, "pluginuser", "1.0", "jar" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
|
|
@ -42,7 +42,7 @@ public class MavenITmng3428PluginDescriptorArtifactsIncompleteTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3428" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
// First, build the plugin we'll use to test the PluginDescriptor artifact collection.
|
||||
verifier.executeGoal( "install" );
|
||||
|
|
|
@ -50,7 +50,7 @@ public class MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "-s" );
|
||||
verifier.getCliOptions().add( "settings.xml" );
|
||||
|
|
|
@ -39,7 +39,7 @@ public class MavenITmng3485OverrideWagonExtensionTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "deploy" );
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class MavenITmng3498ForkToOtherMojoTest
|
|||
File pluginDir = new File( testDir, "maven-mng3498-plugin" );
|
||||
File projectDir = new File( testDir, "mng-3498-project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng3498", "maven-mng3498-plugin", "1", "pom" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
|
|
@ -51,7 +51,7 @@ public class MavenITmng3506ArtifactHandlersFromPluginsTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/" + AID );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.deleteArtifacts( GID );
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public class MavenITmng3530DynamicPOMInterpolationTest
|
|||
// validates that the modification propagated into the validation-mojo
|
||||
// configuration. Once this is installed, we can run a project build that
|
||||
// uses it to see how Maven will respond to a modification in the project build directory.
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
@ -62,7 +62,7 @@ public class MavenITmng3530DynamicPOMInterpolationTest
|
|||
|
||||
// Now, build the project. If the plugin configuration doesn't recognize
|
||||
// the update to the project.build.directory, it will fail the build.
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "package" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
@ -81,7 +81,7 @@ public class MavenITmng3530DynamicPOMInterpolationTest
|
|||
// validates that the modification propagated into the validation-mojo
|
||||
// configuration. Once this is installed, we can run a project build that
|
||||
// uses it to see how Maven will respond to a modification in the POM property.
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
@ -89,7 +89,7 @@ public class MavenITmng3530DynamicPOMInterpolationTest
|
|||
|
||||
// Now, build the project. If the plugin configuration doesn't recognize
|
||||
// the update to the myDirectory, it will fail the build.
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "package" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
@ -106,7 +106,7 @@ public class MavenITmng3530DynamicPOMInterpolationTest
|
|||
|
||||
// First, install the plugin which validates that all resource directory
|
||||
// specifications have been interpolated.
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
@ -114,7 +114,7 @@ public class MavenITmng3530DynamicPOMInterpolationTest
|
|||
|
||||
// Now, build the project. If the plugin finds an uninterpolated resource
|
||||
// directory, it will fail the build.
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "package" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -39,7 +39,7 @@ public class MavenITmng3536AppendedAbsolutePathsTest
|
|||
File testDir = ResourceExtractor.simpleExtractResources( getClass(),
|
||||
"/mng-3536" );
|
||||
File pluginDir = new File( testDir, "plugin" );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public class MavenITmng3600DeploymentModeDefaultsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.setLogFileName( "log-no-settings.txt" );
|
||||
verifier.executeGoal( "deploy" );
|
||||
|
@ -63,7 +63,7 @@ public class MavenITmng3600DeploymentModeDefaultsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "--settings" );
|
||||
verifier.getCliOptions().add( "settings-server-defaults.xml" );
|
||||
|
@ -87,7 +87,7 @@ public class MavenITmng3600DeploymentModeDefaultsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "--settings" );
|
||||
verifier.getCliOptions().add( "settings-modes-set.xml" );
|
||||
|
|
|
@ -101,12 +101,12 @@ public class MavenITmng3652UserAgentHeaderTest
|
|||
File pluginDir = new File( testDir, "test-plugin" );
|
||||
File projectDir = new File( testDir, "test-project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.getCliOptions().add( "-DtestPort=" + port );
|
||||
verifier.getCliOptions().add( "-X" );
|
||||
|
@ -145,12 +145,12 @@ public class MavenITmng3652UserAgentHeaderTest
|
|||
File pluginDir = new File( testDir, "test-plugin" );
|
||||
File projectDir = new File( testDir, "test-project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
// test webdav
|
||||
verifier.getCliOptions().add( "-DtestPort=" + port );
|
||||
|
@ -191,12 +191,12 @@ public class MavenITmng3652UserAgentHeaderTest
|
|||
File pluginDir = new File( testDir, "test-plugin" );
|
||||
File projectDir = new File( testDir, "test-project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
// test settings with no config
|
||||
|
||||
|
@ -239,12 +239,12 @@ public class MavenITmng3652UserAgentHeaderTest
|
|||
File pluginDir = new File( testDir, "test-plugin" );
|
||||
File projectDir = new File( testDir, "test-project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
// test settings with config
|
||||
|
||||
|
|
|
@ -45,13 +45,13 @@ public class MavenITmng3684BuildPluginParameterTest
|
|||
File pluginDir = new File( testDir, "maven-mng3684-plugin" );
|
||||
File projectDir = new File( testDir, "project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
verifier.setLogFileName( "log-validate.txt" );
|
||||
verifier.executeGoal( "validate" );
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public class MavenITmng3693PomFileBasedirChangeTest
|
|||
File pluginDir = new File( testDir, "maven-mng3693-plugin" );
|
||||
File projectsDir = new File( testDir, "projects" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class MavenITmng3694ReactorProjectsDynamismTest
|
|||
File pluginDir = new File( testDir, "maven-mng3694-plugin" );
|
||||
File projectDir = new File( testDir, "projects" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -48,7 +48,7 @@ public class MavenITmng3703ExecutionProjectWithRelativePathsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
|
@ -73,7 +73,7 @@ public class MavenITmng3703ExecutionProjectWithRelativePathsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
|
|
|
@ -49,14 +49,14 @@ public class MavenITmng3704LifecycleExecutorWrapperTest
|
|||
File projectDir = new File( testDir, "project" );
|
||||
|
||||
Verifier verifier;
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "package" );
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class MavenITmng3710PollutedClonedPluginsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
@ -84,7 +84,7 @@ public class MavenITmng3710PollutedClonedPluginsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginsDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginsDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -50,7 +50,7 @@ public class MavenITmng3716AggregatorForkingTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -55,7 +55,7 @@ public class MavenITmng3723ConcreteParentProjectTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -50,7 +50,7 @@ public class MavenITmng3724ExecutionProjectSyncTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -64,7 +64,7 @@ public class MavenITmng3729MultiForkAggregatorsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -52,7 +52,7 @@ public class MavenITmng3740SelfReferentialReactorProjectsTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( v1.getAbsolutePath() );
|
||||
verifier = newVerifier( v1.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
|
|
@ -48,13 +48,13 @@ public class MavenITmng3743ForkWithPluginManagementTest
|
|||
File pluginsDir = new File( testDir, "plugins" );
|
||||
File projectDir = new File( testDir, "project" );
|
||||
|
||||
Verifier verifier = newVerifier( pluginsDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( pluginsDir.getAbsolutePath(), "remote" );
|
||||
verifier.deleteArtifacts( "org.apache.maven.its.mng3743" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( projectDir.getAbsolutePath() );
|
||||
verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "site" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
|
|
@ -50,7 +50,7 @@ public class MavenITmng3746POMPropertyOverrideTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
@ -72,7 +72,7 @@ public class MavenITmng3746POMPropertyOverrideTest
|
|||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath() );
|
||||
verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
|
|
@ -46,7 +46,7 @@ public class MavenITmng4207PluginWithLog4JTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4207" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.executeGoal( "initialize" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
|
|
@ -50,7 +50,7 @@ public class MavenITmng4238ArtifactHandlerExtensionUsageTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4238" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.deleteArtifacts( GID );
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public class MavenITmng4270ArtifactHandlersFromPluginDepsTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/" + AID );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
|
||||
verifier.deleteArtifacts( GID );
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public class MavenITmng4633DualCompilerExecutionsWeaveModeTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4633" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.getCliOptions().add( "-T" );
|
||||
verifier.getCliOptions().add( "2W" );
|
||||
|
|
|
@ -47,7 +47,7 @@ public class MavenITmng4654ArtifactHandlerForMainArtifactTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4654" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.deleteDirectory( "target" );
|
||||
verifier.deleteArtifacts( "org.apache.maven.its.mng4654" );
|
||||
|
|
|
@ -19,7 +19,24 @@ specific language governing permissions and limitations
|
|||
under the License.
|
||||
-->
|
||||
|
||||
<!--
|
||||
These settings are meant for ITs that download artifacts from remote servers. In general, ITs should use stub
|
||||
plugins/artifacts from test repos so use of these settings should be the exceptional case, not the default.
|
||||
-->
|
||||
|
||||
<settings>
|
||||
<proxies>
|
||||
<proxy>
|
||||
<id>it-proxy</id>
|
||||
<active>${proxy.active}</active>
|
||||
<protocol>${proxy.type}</protocol>
|
||||
<host>${proxy.host}</host>
|
||||
<port>${proxy.port}</port>
|
||||
<username>${proxy.user}</username>
|
||||
<password>${proxy.pass}</password>
|
||||
<nonProxyHosts>localhost</nonProxyHosts>
|
||||
</proxy>
|
||||
</proxies>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>it-defaults</id>
|
||||
|
@ -27,7 +44,7 @@ under the License.
|
|||
<repository>
|
||||
<id>central</id>
|
||||
<name>Apache Maven Integration Testing Repository</name>
|
||||
<url>http://repository.sonatype.org/content/repositories/public</url>
|
||||
<url>${maven.it.central}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
|
@ -40,7 +57,7 @@ under the License.
|
|||
<pluginRepository>
|
||||
<id>central</id>
|
||||
<name>Apache Maven Integration Testing Repository</name>
|
||||
<url>http://repository.sonatype.org/content/repositories/public</url>
|
||||
<url>${maven.it.central}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
|
@ -19,19 +19,13 @@ specific language governing permissions and limitations
|
|||
under the License.
|
||||
-->
|
||||
|
||||
<!--
|
||||
These settings are meant for ITs that don't download artifacts from remote servers, i.e. ITs that either use their
|
||||
own test repos or can employ the local repository (after bootstrapping). This configuration uses a file: URL to
|
||||
"central" to avoid needless network access for files knowingly not present externally.
|
||||
-->
|
||||
|
||||
<settings>
|
||||
<proxies>
|
||||
<proxy>
|
||||
<id>it-proxy</id>
|
||||
<active>${proxy.active}</active>
|
||||
<protocol>${proxy.type}</protocol>
|
||||
<host>${proxy.host}</host>
|
||||
<port>${proxy.port}</port>
|
||||
<username>${proxy.user}</username>
|
||||
<password>${proxy.pass}</password>
|
||||
<nonProxyHosts>localhost</nonProxyHosts>
|
||||
</proxy>
|
||||
</proxies>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>it-defaults</id>
|
||||
|
@ -39,7 +33,7 @@ under the License.
|
|||
<repository>
|
||||
<id>central</id>
|
||||
<name>Apache Maven Integration Testing Repository</name>
|
||||
<url>http://repo1.maven.org/maven2</url>
|
||||
<url>file:target/null</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
|
@ -52,7 +46,7 @@ under the License.
|
|||
<pluginRepository>
|
||||
<id>central</id>
|
||||
<name>Apache Maven Integration Testing Repository</name>
|
||||
<url>http://repo1.maven.org/maven2</url>
|
||||
<url>file:target/null</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
|
|
|
@ -0,0 +1,141 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>group-1</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap :: Group-1</name>
|
||||
|
||||
<properties>
|
||||
<stubPluginVersion>0.1-stub-SNAPSHOT</stubPluginVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- stub plugins in alphabetical order -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-ear-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-ejb-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-install-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-plugin-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-rar-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>maven-core-it-support</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>group-2</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap :: Group-2</name>
|
||||
|
||||
<properties>
|
||||
<itPluginVersion>2.1-SNAPSHOT</itPluginVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>core-it-extension</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>core-it-wagon</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>core-it-toolchain</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>1.5.5</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,259 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>group-3</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap :: Group-3</name>
|
||||
|
||||
<properties>
|
||||
<itPluginVersion>2.1-SNAPSHOT</itPluginVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-active-collection</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-all</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-artifact</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-class-loader</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-configuration</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-context-passing</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-dependency-collection</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-expression</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-error</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension-consumer</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension-provider</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension1</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension2</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-fork</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-invalid-descriptor</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-log4j</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-log-file</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-no-default-comp</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-no-project</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-online</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-optional-mojos</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-packaging</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-parameter-implementation</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plexus-component-api</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plugin-dependency</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-project-interpolation</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
<exclusions>
|
||||
<!--
|
||||
NOTE: This artifact (and its dependency maven-verifier) are in use by the class loader employed by Surefire
|
||||
to orchestrate this test. Re-downloading (newer snapshots of) these artifacts during the tests will wreck
|
||||
havoc on the class loader, i.e. tests fail due to NoClassDefFoundError's in the test controller.
|
||||
-->
|
||||
<exclusion>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>maven-it-helper</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-setter</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-singleton-component</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-site</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-touch</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-toolchain</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-uses-properties</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-uses-wagon</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>group-4</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap :: Group-4</name>
|
||||
|
||||
<properties>
|
||||
<itPluginVersion>2.1-SNAPSHOT</itPluginVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>group-5</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap :: Group-5</name>
|
||||
|
||||
<properties>
|
||||
<itPluginVersion>2.1-SNAPSHOT</itPluginVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plexus-utils-11</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plexus-utils-new</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>maven-core-it-support</artifactId>
|
||||
<version>1.3</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>group-6</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap :: Group-6</name>
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
||||
<version>1.0-beta-3</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>maven-core-it-support</artifactId>
|
||||
<version>1.4</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -25,369 +25,30 @@ under the License.
|
|||
<groupId>org.apache.maven.its.bootstrap</groupId>
|
||||
<artifactId>maven-it-boostrap</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Maven Integration Test :: Boostrap</name>
|
||||
<description>
|
||||
This project pulls down all the snapshot plugins required for the IT suite. Due to MNG-2974, snapshot versions of
|
||||
This project pulls down all the artifacts/plugins required for the IT suite. Due to MNG-2974, snapshot versions of
|
||||
plugins cannot be downloaded by Maven from non-default repositories configured in the POM if the plugin is invoked
|
||||
directly from the command line. Also, having this in a central place spares us from copying the snapshot repo
|
||||
config all around in the IT POMs.
|
||||
</description>
|
||||
|
||||
<modules>
|
||||
<!-- Dependencies are split into groups when conflict resolution would otherwise prevent downloads -->
|
||||
<module>group-1</module>
|
||||
<module>group-2</module>
|
||||
<module>group-3</module>
|
||||
<module>group-4</module>
|
||||
<module>group-5</module>
|
||||
<module>group-6</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<itPluginVersion>2.1-SNAPSHOT</itPluginVersion>
|
||||
<stubPluginVersion>0.1-stub-SNAPSHOT</stubPluginVersion>
|
||||
<maven.test.skip>true</maven.test.skip>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- IT plugins/artifacts in alphabetical order -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>core-it-extension</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>core-it-wagon</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>core-it-toolchain</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-active-collection</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-all</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-artifact</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-class-loader</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-configuration</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-context-passing</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-dependency-collection</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-expression</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-error</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension-consumer</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension-provider</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension1</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-extension2</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-fork</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-invalid-descriptor</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-log4j</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-log-file</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-no-default-comp</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-no-project</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-online</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-optional-mojos</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-packaging</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-parameter-implementation</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plexus-utils-11</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plexus-utils-new</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plexus-component-api</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-plugin-dependency</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-project-interpolation</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
<exclusions>
|
||||
<!--
|
||||
NOTE: This artifact (and its dependency maven-verifier) are in use by the class loader employed by Surefire
|
||||
to orchestrate this test. Re-downloading (newer snapshots of) these artifacts during the tests will wreck
|
||||
havoc on the class loader, i.e. tests fail due to NoClassDefFoundError's in the test controller.
|
||||
-->
|
||||
<exclusion>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>maven-it-helper</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-setter</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-singleton-component</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-site</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-touch</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-toolchain</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-uses-properties</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-uses-wagon</artifactId>
|
||||
<version>${itPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- stub plugins in alphabetical order -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-ear-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-ejb-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-install-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-plugin-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-rar-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>${stubPluginVersion}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- This merely locks the plugin versions to disable auto-update -->
|
||||
<plugins>
|
||||
|
|
|
@ -34,7 +34,7 @@ under the License.
|
|||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<groupId>org.apache.maven.its</groupId>
|
||||
<artifactId>maven-core-it-support</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>compile</scope>
|
||||
|
|
|
@ -63,7 +63,7 @@ under the License.
|
|||
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>central</id>
|
||||
<id>test-a</id>
|
||||
<url>@baseurl@/repo-3</url>
|
||||
<!-- should not match anything but maven-core-it-ext -->
|
||||
<mirrorOf>external:*</mirrorOf>
|
||||
|
|
|
@ -42,5 +42,11 @@ under the License.
|
|||
<!-- NOTE: Intentionally no version here, Maven should automatically pick one -->
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
@ -379,46 +379,70 @@ public abstract class AbstractMavenIntegrationTestCase
|
|||
return version;
|
||||
}
|
||||
|
||||
protected Verifier newVerifier( File basedir )
|
||||
throws VerificationException
|
||||
{
|
||||
return newVerifier( basedir.getAbsolutePath() );
|
||||
}
|
||||
|
||||
protected Verifier newVerifier( String basedir )
|
||||
throws VerificationException
|
||||
{
|
||||
return newVerifier( basedir, false );
|
||||
}
|
||||
|
||||
protected Verifier newVerifier( String basedir, String settings )
|
||||
throws VerificationException
|
||||
{
|
||||
return newVerifier( basedir, settings, false );
|
||||
}
|
||||
|
||||
protected Verifier newVerifier( String basedir, boolean debug )
|
||||
throws VerificationException
|
||||
{
|
||||
return newVerifier( basedir, "", debug );
|
||||
}
|
||||
|
||||
protected Verifier newVerifier( String basedir, String settings, boolean debug )
|
||||
throws VerificationException
|
||||
{
|
||||
Verifier verifier = new Verifier( basedir, debug );
|
||||
|
||||
verifier.setAutoclean( false );
|
||||
|
||||
String globalSettings = System.getProperty( "maven.it.global-settings", "" );
|
||||
if ( globalSettings.length() > 0 )
|
||||
if ( settings != null )
|
||||
{
|
||||
globalSettings = new File( globalSettings ).getAbsolutePath();
|
||||
File settingsFile;
|
||||
if ( settings.length() > 0 )
|
||||
{
|
||||
settingsFile = new File( "settings-" + settings + ".xml" );
|
||||
}
|
||||
else
|
||||
{
|
||||
settingsFile = new File( "settings.xml" );
|
||||
}
|
||||
|
||||
if ( !settingsFile.isAbsolute() )
|
||||
{
|
||||
String settingsDir = System.getProperty( "maven.it.global-settings.dir", "" );
|
||||
if ( settingsDir.length() > 0 )
|
||||
{
|
||||
settingsFile = new File( settingsDir, settingsFile.getPath() );
|
||||
}
|
||||
}
|
||||
|
||||
String path = settingsFile.getAbsolutePath();
|
||||
|
||||
// dedicated CLI option only available since MNG-3914
|
||||
if ( matchesVersionRange( "[2.1.0,)" ) )
|
||||
{
|
||||
verifier.getCliOptions().add( "--global-settings" );
|
||||
if ( globalSettings.indexOf( ' ' ) < 0 )
|
||||
if ( path.indexOf( ' ' ) < 0 )
|
||||
{
|
||||
verifier.getCliOptions().add( globalSettings );
|
||||
verifier.getCliOptions().add( path );
|
||||
}
|
||||
else
|
||||
{
|
||||
verifier.getCliOptions().add( '"' + globalSettings + '"' );
|
||||
verifier.getCliOptions().add( '"' + path + '"' );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
verifier.getSystemProperties().put( "org.apache.maven.global-settings", globalSettings );
|
||||
verifier.getSystemProperties().put( "org.apache.maven.global-settings", path );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue