maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject maven-integration-testing git commit: MNG-5774 Provide an extension point for alternate CLI configuration source
Date Sun, 01 Mar 2015 21:34:22 GMT
Repository: maven-integration-testing
Updated Branches:
  refs/heads/master f87311948 -> cbb445d2f


MNG-5774 Provide an extension point for alternate CLI configuration source


Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/cbb445d2
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/cbb445d2
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/cbb445d2

Branch: refs/heads/master
Commit: cbb445d2fc3dd35505fdd92a2ff777ba5ad81c50
Parents: f873119
Author: Jason van Zyl <jason@tesla.io>
Authored: Sun Mar 1 10:20:09 2015 -0800
Committer: Jason van Zyl <jason@tesla.io>
Committed: Sun Mar 1 10:40:13 2015 -0800

----------------------------------------------------------------------
 apache-maven-3.2.2-bin.tar.gz                   | Bin 6940967 -> 0 bytes
 .../apache/maven/it/IntegrationTestSuite.java   |   1 +
 ...venITmng5774ConfigurationProcessorsTest.java |  64 +++++++++++++++++++
 .../.mvn/extensions.xml                         |  28 ++++++++
 .../build-with-one-processor-valid/pom.xml      |  45 +++++++++++++
 .../src/main/resources/result.properties        |   1 +
 .../.mvn/extensions.xml                         |  33 ++++++++++
 .../build-with-two-processors-invalid/pom.xml   |  36 +++++++++++
 .../configuration-processor-one/.gitignore      |   1 +
 .../configuration-processor-one/pom.xml         |  58 +++++++++++++++++
 .../ConfigurationProcessorOne.java              |  21 ++++++
 .../configuration-processor-two/.gitignore      |   1 +
 .../configuration-processor-two/pom.xml         |  58 +++++++++++++++++
 .../ConfigurationProcessorTwo.java              |  15 +++++
 ...maven-it-configuration-processor-one-0.1.jar | Bin 0 -> 4407 bytes
 ...maven-it-configuration-processor-one-0.1.pom |  58 +++++++++++++++++
 ...maven-it-configuration-processor-two-0.1.jar | Bin 0 -> 4168 bytes
 ...maven-it-configuration-processor-two-0.1.pom |  58 +++++++++++++++++
 .../settings-template.xml                       |  43 +++++++++++++
 19 files changed, 521 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/apache-maven-3.2.2-bin.tar.gz
----------------------------------------------------------------------
diff --git a/apache-maven-3.2.2-bin.tar.gz b/apache-maven-3.2.2-bin.tar.gz
deleted file mode 100644
index b369f19..0000000
Binary files a/apache-maven-3.2.2-bin.tar.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
index daec9a0..f3baf59 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
@@ -106,6 +106,7 @@ public class IntegrationTestSuite
         // -------------------------------------------------------------------------------------------------------------
         // suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
 
+        suite.addTestSuite( MavenITmng5774ConfigurationProcessorsTest.class );
         suite.addTestSuite( MavenITmng5771CoreExtensionsTest.class );
         suite.addTestSuite( MavenITmng5768CliExecutionIdTest.class );
         suite.addTestSuite( MavenITmng5742BuildExtensionClassloaderTest.class );

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5774ConfigurationProcessorsTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5774ConfigurationProcessorsTest.java
b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5774ConfigurationProcessorsTest.java
new file mode 100644
index 0000000..b29204a
--- /dev/null
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5774ConfigurationProcessorsTest.java
@@ -0,0 +1,64 @@
+package org.apache.maven.it;
+
+import java.io.File;
+import java.util.Properties;
+
+import org.apache.maven.it.util.ResourceExtractor;
+
+public class MavenITmng5774ConfigurationProcessorsTest
+    extends AbstractMavenIntegrationTestCase
+{
+    public MavenITmng5774ConfigurationProcessorsTest()
+    {
+        super( "(3.2.5,)" );
+    }
+
+    public void testBehaviourWhereThereIsOneUserSuppliedConfigurationProcessor()
+        throws Exception
+    {
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5774-configuration-processors"
);
+
+        Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+        verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties()
);
+
+        verifier = newVerifier( new File( testDir, "build-with-one-processor-valid" ).getAbsolutePath()
);
+        verifier.deleteDirectory( "target" );
+        verifier.deleteArtifacts( "org.apache.maven.its.it-configuration-processors" );
+        verifier.getCliOptions().add( "-s" );
+        verifier.getCliOptions().add( new File( testDir, "settings.xml" ).getAbsolutePath()
);
+        verifier.executeGoal( "process-resources" );
+        verifier.verifyErrorFreeLog();
+        // Making sure our configuration processor executes
+        verifier.verifyTextInLog( "[INFO] ConfigurationProcessorOne.process()" );  
+        // We have a property value injected by our configuration processor. Make sure it's
correct
+        verifier.assertFilePresent( "target/classes/result.properties" );
+        Properties result = verifier.loadProperties( "target/classes/result.properties" );
+        assertEquals( "yes", result.getProperty( "configurationProcessorContributedValue"
) );
+        verifier.resetStreams();
+    }
+
+    public void testBehaviourWhereThereAreTwoUserSuppliedConfigurationProcessor()
+        throws Exception
+    {
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5774-configuration-processors"
);
+
+        Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+        verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties()
);
+
+        verifier = newVerifier( new File( testDir, "build-with-two-processors-invalid" ).getAbsolutePath()
);
+        verifier.deleteDirectory( "target" );
+        verifier.deleteArtifacts( "org.apache.maven.its.it-configuration-processors" );
+        verifier.getCliOptions().add( "-s" );
+        verifier.getCliOptions().add( new File( testDir, "settings.xml" ).getAbsolutePath()
);
+        try
+        {
+            verifier.executeGoal( "process-resources" );
+            fail( "We expected this invocation to fail because of too many user supplied
configuration processors being present" );
+        }
+        catch ( VerificationException e )
+        {
+            verifier.verifyTextInLog( "There can only be one user supplied ConfigurationProcessor"
);
+        }
+        verifier.resetStreams();
+    }
+}

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/.mvn/extensions.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/.mvn/extensions.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/.mvn/extensions.xml
new file mode 100644
index 0000000..6e130c4
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/.mvn/extensions.xml
@@ -0,0 +1,28 @@
+<?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.
+-->
+
+<extensions>
+  <extension>
+    <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+    <artifactId>maven-it-configuration-processor-one</artifactId>
+    <version>0.1</version>  
+  </extension>
+</extensions>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/pom.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/pom.xml
new file mode 100644
index 0000000..74cf1e4
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/pom.xml
@@ -0,0 +1,45 @@
+<?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>
+
+  <groupId>org.apache.maven.its.it-core-extensions</groupId>
+  <artifactId>test</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: it-core-extensions</name>
+  <description>
+    Verify that Maven loads core extensions and components contributed by the extensions
are available to regular
+    plugins. 
+  </description>
+
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>  
+    </resources>
+  </build>
+  
+</project>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/src/main/resources/result.properties
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/src/main/resources/result.properties
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/src/main/resources/result.properties
new file mode 100644
index 0000000..ee47fb3
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-one-processor-valid/src/main/resources/result.properties
@@ -0,0 +1 @@
+configurationProcessorContributedValue = ${answer}

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/.mvn/extensions.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/.mvn/extensions.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/.mvn/extensions.xml
new file mode 100644
index 0000000..053db48
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/.mvn/extensions.xml
@@ -0,0 +1,33 @@
+<?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.
+-->
+
+<extensions>
+  <extension>
+    <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+    <artifactId>maven-it-configuration-processor-one</artifactId>
+    <version>0.1</version>
+  </extension>
+  <extension>
+    <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+    <artifactId>maven-it-configuration-processor-two</artifactId>
+    <version>0.1</version>
+  </extension>
+</extensions>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/pom.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/pom.xml
new file mode 100644
index 0000000..8613bfb
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/build-with-two-processors-invalid/pom.xml
@@ -0,0 +1,36 @@
+<?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>
+
+  <groupId>org.apache.maven.its.it-core-extensions</groupId>
+  <artifactId>test</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: it-core-extensions</name>
+  <description>
+    Verify that Maven loads core extensions and components contributed by the extensions
are available to regular
+    plugins. 
+  </description>
+
+</project>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/.gitignore
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/.gitignore
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/.gitignore
@@ -0,0 +1 @@
+/target/

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/pom.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/pom.xml
new file mode 100644
index 0000000..604fd54
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/pom.xml
@@ -0,0 +1,58 @@
+<?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>
+
+  <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+  <artifactId>maven-it-configuration-processor-one</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: maven-it-configuration-processors</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-embedder</artifactId>
+      <version>3.2.6-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-component-metadata</artifactId>
+        <version>1.5.5</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>generate-metadata</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorOne.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorOne.java
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorOne.java
new file mode 100644
index 0000000..80c97bd
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-one/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorOne.java
@@ -0,0 +1,21 @@
+package org.apache.maven.its.configuration_processors;
+
+import org.apache.maven.cli.CliRequest;
+import org.apache.maven.cli.configuration.ConfigurationProcessor;
+import org.codehaus.plexus.component.annotations.Component;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@Component( role = ConfigurationProcessor.class, hint = "maven-core-it-one" )
+public class ConfigurationProcessorOne
+    implements ConfigurationProcessor
+{
+    private Logger logger = LoggerFactory.getLogger( ConfigurationProcessorOne.class );
+
+    public void process( CliRequest request )
+        throws Exception
+    {
+        logger.info( "ConfigurationProcessorOne.process()" );
+        request.getUserProperties().put( "answer", "yes" );
+    }
+}

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/.gitignore
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/.gitignore
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/.gitignore
@@ -0,0 +1 @@
+/target/

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/pom.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/pom.xml
new file mode 100644
index 0000000..4c59ec0
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/pom.xml
@@ -0,0 +1,58 @@
+<?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>
+
+  <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+  <artifactId>maven-it-configuration-processor-two</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: maven-it-configuration-processors</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-embedder</artifactId>
+      <version>3.2.6-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-component-metadata</artifactId>
+        <version>1.5.5</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>generate-metadata</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorTwo.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorTwo.java
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorTwo.java
new file mode 100644
index 0000000..c98071e
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/configuration-processor-two/src/main/java/org/apache/maven/its/configuration_processors/ConfigurationProcessorTwo.java
@@ -0,0 +1,15 @@
+package org.apache.maven.its.configuration_processors;
+
+import org.apache.maven.cli.CliRequest;
+import org.apache.maven.cli.configuration.ConfigurationProcessor;
+import org.codehaus.plexus.component.annotations.Component;
+
+@Component( role = ConfigurationProcessor.class, hint = "maven-core-it-two" )
+public class ConfigurationProcessorTwo
+    implements ConfigurationProcessor
+{
+    public void process( CliRequest request )
+        throws Exception
+    {
+    }
+}

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.jar
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.jar
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.jar
new file mode 100644
index 0000000..8364b46
Binary files /dev/null and b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.jar
differ

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.pom
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.pom
new file mode 100644
index 0000000..604fd54
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-one/0.1/maven-it-configuration-processor-one-0.1.pom
@@ -0,0 +1,58 @@
+<?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>
+
+  <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+  <artifactId>maven-it-configuration-processor-one</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: maven-it-configuration-processors</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-embedder</artifactId>
+      <version>3.2.6-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-component-metadata</artifactId>
+        <version>1.5.5</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>generate-metadata</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.jar
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.jar
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.jar
new file mode 100644
index 0000000..ed2311f
Binary files /dev/null and b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.jar
differ

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.pom
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.pom
new file mode 100644
index 0000000..4c59ec0
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/repo/org/apache/maven/its/it-configuration-processors/maven-it-configuration-processor-two/0.1/maven-it-configuration-processor-two-0.1.pom
@@ -0,0 +1,58 @@
+<?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>
+
+  <groupId>org.apache.maven.its.it-configuration-processors</groupId>
+  <artifactId>maven-it-configuration-processor-two</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: maven-it-configuration-processors</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-embedder</artifactId>
+      <version>3.2.6-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-component-metadata</artifactId>
+        <version>1.5.5</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>generate-metadata</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/cbb445d2/core-it-suite/src/test/resources/mng-5774-configuration-processors/settings-template.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5774-configuration-processors/settings-template.xml
b/core-it-suite/src/test/resources/mng-5774-configuration-processors/settings-template.xml
new file mode 100644
index 0000000..8649e57
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5774-configuration-processors/settings-template.xml
@@ -0,0 +1,43 @@
+<?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.
+-->
+
+<settings>
+  <profiles>
+    <profile>
+      <id>maven-core-it-repo</id>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>maven-core-it</id>
+          <url>@baseurl@/repo</url>
+          <releases>
+            <checksumPolicy>ignore</checksumPolicy>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+  <activeProfiles>
+    <activeProfile>maven-core-it-repo</activeProfile>
+  </activeProfiles>
+</settings>


Mime
View raw message