You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2014/01/06 17:57:17 UTC
git commit: MNG-5557: IT to test the constraining of the reactor with
--projects - rename the mojo execution scope directory to have a small
description
Updated Branches:
refs/heads/master fa0f5050b -> c01884d6d
MNG-5557: IT to test the constraining of the reactor with --projects
- rename the mojo execution scope directory to have a small description
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/c01884d6
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/c01884d6
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/c01884d6
Branch: refs/heads/master
Commit: c01884d6d4dbaca328edf6d8e238e6959449f25b
Parents: fa0f505
Author: Jason van Zyl <ja...@tesla.io>
Authored: Mon Jan 6 11:55:57 2014 -0500
Committer: Jason van Zyl <ja...@tesla.io>
Committed: Mon Jan 6 11:55:57 2014 -0500
----------------------------------------------------------------------
.../MavenITmng5530MojoExecutionScopeTest.java | 2 +-
...MavenITmng5557ProperlyRestrictedReactor.java | 65 ++++++++++++++
.../mng-5530-mojo-execution-scope/basic/pom.xml | 51 +++++++++++
.../plugin/pom.xml | 95 ++++++++++++++++++++
.../TestExecutionScopeMojo.java | 40 +++++++++
.../TestExecutionScopedComponent.java | 90 +++++++++++++++++++
.../src/test/resources/mng-5530/basic/pom.xml | 51 -----------
.../src/test/resources/mng-5530/plugin/pom.xml | 95 --------------------
.../TestExecutionScopeMojo.java | 40 ---------
.../TestExecutionScopedComponent.java | 90 -------------------
.../pom.xml | 15 ++++
.../project-0/pom.xml | 31 +++++++
.../java/org/apache/maven/its/mng5557/App.java | 13 +++
.../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
.../project-1/pom.xml | 26 ++++++
.../java/org/apache/maven/its/mng5557/App.java | 13 +++
.../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
.../project-2/pom.xml | 26 ++++++
.../java/org/apache/maven/its/mng5557/App.java | 13 +++
.../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
.../project-3/pom.xml | 26 ++++++
.../java/org/apache/maven/its/mng5557/App.java | 13 +++
.../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
.../project-4/pom.xml | 26 ++++++
.../java/org/apache/maven/its/mng5557/App.java | 13 +++
.../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
26 files changed, 747 insertions(+), 277 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
index 6cac091..f9b45be 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
@@ -34,7 +34,7 @@ public class MavenITmng5530MojoExecutionScopeTest
public void test_copyfiles()
throws Exception
{
- File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5530");
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5530-mojo-execution-scope");
File pluginDir = new File( testDir, "plugin" );
File projectDir = new File( testDir, "basic" );
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
new file mode 100644
index 0000000..2d2ce05
--- /dev/null
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
@@ -0,0 +1,65 @@
+package org.apache.maven.it;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+
+import org.apache.maven.it.util.ResourceExtractor;
+
+/**
+ * Test to make sure that the reactor is properly constrained when --projects is used. Previous to 3.1.2 all of the
+ * projects found in the <modules/> section of the POM were passed into the reactor. This test is a 5 project
+ * multi-module project where only project-0, and project-1 are specified to be used. The project-0 has a dependency on
+ * project-4 and in this constrained mode the dependency resolution should fail because project-4 is no longer placed in
+ * the reactor.
+ *
+ * @author jvanzyl
+ */
+public class MavenITmng5557ProperlyRestrictedReactor
+ extends AbstractMavenIntegrationTestCase
+{
+ public MavenITmng5557ProperlyRestrictedReactor()
+ {
+ super( "[3.1.2,)" );
+ }
+
+ public void testRunningRestrictedReactor()
+ throws Exception
+ {
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5557-properly-restricted-reactor" );
+ Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+ //
+ // Remove everything related to this project from the local repository as we want this to be resolution purely
+ // from the reactor.
+ //
+ verifier.deleteArtifacts( "org.apache.maven.its.mng5557" );
+ verifier.addCliOption( "--projects project-0,project-1" );
+ try
+ {
+ verifier.executeGoal( "package" );
+ }
+ catch ( VerificationException e )
+ {
+ // the execution should fail due to a resolution error.
+ }
+ verifier.resetStreams();
+ verifier.verifyTextInLog( "Could not resolve dependencies for project org.apache.maven.its.mng5557:project-0:jar:1.0: Could not find artifact org.apache.maven.its.mng5557:project-4:jar:1.0" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
new file mode 100644
index 0000000..b17233d
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
@@ -0,0 +1,51 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>io.tesla.its.mojoexecutionscope</groupId>
+ <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
+ <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
+ <version>0.1</version>
+ <extensions>true</extensions>
+ <executions>
+ <execution>
+ <id>test-execution-scope</id>
+ <goals>
+ <goal>test-execution-scope</goal>
+ </goals>
+ <phase>process-resources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+ </build>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
new file mode 100644
index 0000000..67bd766
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
@@ -0,0 +1,95 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
+ <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
+ <version>0.1</version>
+ <packaging>maven-plugin</packaging>
+
+ <properties>
+ <maven-version>[3.2.0-SNAPSHOT,)</maven-version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>${maven-version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>${maven-version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ <version>${maven-version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>sisu-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>main-index</goal>
+ <goal>test-index</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
+ <version>1.5.5</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-metadata</goal>
+ <goal>generate-test-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
new file mode 100644
index 0000000..24d5c8a
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
@@ -0,0 +1,40 @@
+package org.apache.maven.its.mng5530.mojoexecutionscope;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+
+/**
+ * @goal test-execution-scope
+ */
+public class TestExecutionScopeMojo
+ extends AbstractMojo
+{
+ /** @component */
+ private TestExecutionScopedComponent executionScopedComponent;
+
+ public void execute()
+ throws MojoExecutionException, MojoFailureException
+ {
+ executionScopedComponent.recordExecute();
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
new file mode 100644
index 0000000..723d36c
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
@@ -0,0 +1,90 @@
+package org.apache.maven.its.mng5530.mojoexecutionscope;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+
+import javax.inject.Inject;
+import javax.inject.Named;
+
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.execution.MojoExecutionEvent;
+import org.apache.maven.execution.scope.MojoExecutionScoped;
+import org.apache.maven.execution.scope.WeakMojoExecutionListener;
+import org.apache.maven.plugin.MojoExecution;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+
+@Named
+@MojoExecutionScoped
+public class TestExecutionScopedComponent
+ implements WeakMojoExecutionListener
+{
+ private final File basedir;
+
+ private MavenSession session;
+
+ private MojoExecution execution;
+
+ @Inject
+ public TestExecutionScopedComponent( MavenSession session, MavenProject project, MojoExecution execution )
+ {
+ this.session = session;
+ this.execution = execution;
+ this.basedir = new File( project.getBuild().getDirectory() );
+ }
+
+ public void recordExecute()
+ {
+ touch( new File( basedir, "execution-executed.txt" ) );
+ }
+
+ private void touch( File file )
+ {
+ file.getParentFile().mkdirs();
+ try
+ {
+ new FileOutputStream( file ).close();
+ }
+ catch ( IOException e )
+ {
+ // ignore
+ }
+ }
+
+ public void afterExecutionFailure( MojoExecutionEvent event )
+ {
+ touch( new File( basedir, "execution-failure.txt" ) );
+ }
+
+ public void afterMojoExecutionSuccess( MojoExecutionEvent event )
+ throws MojoExecutionException
+ {
+ touch( new File( basedir, "execution-success.txt" ) );
+ }
+
+ public void beforeMojoExecution( MojoExecutionEvent event )
+ throws MojoExecutionException
+ {
+ touch( new File( basedir, "execution-before.txt" ) );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml b/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
deleted file mode 100644
index b17233d..0000000
--- a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>io.tesla.its.mojoexecutionscope</groupId>
- <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>jar</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
- <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
- <version>0.1</version>
- <extensions>true</extensions>
- <executions>
- <execution>
- <id>test-execution-scope</id>
- <goals>
- <goal>test-execution-scope</goal>
- </goals>
- <phase>process-resources</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
-
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml b/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
deleted file mode 100644
index a98e9ca..0000000
--- a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
- <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
- <version>0.1</version>
- <packaging>maven-plugin</packaging>
-
- <properties>
- <maven-version>[3.1.2-SNAPSHOT,)</maven-version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>${maven-version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-model</artifactId>
- <version>${maven-version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-core</artifactId>
- <version>${maven-version}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.sonatype.plugins</groupId>
- <artifactId>sisu-maven-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>main-index</goal>
- <goal>test-index</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-component-metadata</artifactId>
- <version>1.5.5</version>
- <executions>
- <execution>
- <goals>
- <goal>generate-metadata</goal>
- <goal>generate-test-metadata</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
deleted file mode 100644
index 24d5c8a..0000000
--- a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.apache.maven.its.mng5530.mojoexecutionscope;
-
-/*
- * 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.
- */
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-
-/**
- * @goal test-execution-scope
- */
-public class TestExecutionScopeMojo
- extends AbstractMojo
-{
- /** @component */
- private TestExecutionScopedComponent executionScopedComponent;
-
- public void execute()
- throws MojoExecutionException, MojoFailureException
- {
- executionScopedComponent.recordExecute();
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
deleted file mode 100644
index 723d36c..0000000
--- a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.apache.maven.its.mng5530.mojoexecutionscope;
-
-/*
- * 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.
- */
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import javax.inject.Inject;
-import javax.inject.Named;
-
-import org.apache.maven.execution.MavenSession;
-import org.apache.maven.execution.MojoExecutionEvent;
-import org.apache.maven.execution.scope.MojoExecutionScoped;
-import org.apache.maven.execution.scope.WeakMojoExecutionListener;
-import org.apache.maven.plugin.MojoExecution;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-@Named
-@MojoExecutionScoped
-public class TestExecutionScopedComponent
- implements WeakMojoExecutionListener
-{
- private final File basedir;
-
- private MavenSession session;
-
- private MojoExecution execution;
-
- @Inject
- public TestExecutionScopedComponent( MavenSession session, MavenProject project, MojoExecution execution )
- {
- this.session = session;
- this.execution = execution;
- this.basedir = new File( project.getBuild().getDirectory() );
- }
-
- public void recordExecute()
- {
- touch( new File( basedir, "execution-executed.txt" ) );
- }
-
- private void touch( File file )
- {
- file.getParentFile().mkdirs();
- try
- {
- new FileOutputStream( file ).close();
- }
- catch ( IOException e )
- {
- // ignore
- }
- }
-
- public void afterExecutionFailure( MojoExecutionEvent event )
- {
- touch( new File( basedir, "execution-failure.txt" ) );
- }
-
- public void afterMojoExecutionSuccess( MojoExecutionEvent event )
- throws MojoExecutionException
- {
- touch( new File( basedir, "execution-success.txt" ) );
- }
-
- public void beforeMojoExecution( MojoExecutionEvent event )
- throws MojoExecutionException
- {
- touch( new File( basedir, "execution-before.txt" ) );
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
new file mode 100644
index 0000000..54aab39
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>project-0</module>
+ <module>project-1</module>
+ <module>project-2</module>
+ <module>project-3</module>
+ <module>project-4</module>
+ </modules>
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
new file mode 100644
index 0000000..46d1a1a
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>project-0</artifactId>
+ <version>1.0</version>
+ <name>project-0</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>project-4</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
new file mode 100644
index 0000000..727deaf
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
@@ -0,0 +1,13 @@
+package org.apache.maven.its.mng5557;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
new file mode 100644
index 0000000..422f488
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
@@ -0,0 +1,38 @@
+package org.apache.maven.its.mng5557;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
new file mode 100644
index 0000000..2742b65
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>project-1</artifactId>
+ <version>1.0</version>
+ <name>project-1</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
new file mode 100644
index 0000000..727deaf
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
@@ -0,0 +1,13 @@
+package org.apache.maven.its.mng5557;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
new file mode 100644
index 0000000..422f488
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
@@ -0,0 +1,38 @@
+package org.apache.maven.its.mng5557;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
new file mode 100644
index 0000000..c627a13
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>project-2</artifactId>
+ <version>1.0</version>
+ <name>project-2</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
new file mode 100644
index 0000000..727deaf
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
@@ -0,0 +1,13 @@
+package org.apache.maven.its.mng5557;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
new file mode 100644
index 0000000..422f488
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
@@ -0,0 +1,38 @@
+package org.apache.maven.its.mng5557;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
new file mode 100644
index 0000000..5d3b117
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>project-3</artifactId>
+ <version>1.0</version>
+ <name>project-3</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
new file mode 100644
index 0000000..727deaf
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
@@ -0,0 +1,13 @@
+package org.apache.maven.its.mng5557;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
new file mode 100644
index 0000000..422f488
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
@@ -0,0 +1,38 @@
+package org.apache.maven.its.mng5557;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
new file mode 100644
index 0000000..0bd4660
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+ <groupId>org.apache.maven.its.mng5557</groupId>
+ <artifactId>project-4</artifactId>
+ <version>1.0</version>
+ <name>project-4</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
new file mode 100644
index 0000000..727deaf
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
@@ -0,0 +1,13 @@
+package org.apache.maven.its.mng5557;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
new file mode 100644
index 0000000..422f488
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
@@ -0,0 +1,38 @@
+package org.apache.maven.its.mng5557;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
Re: git commit: MNG-5557: IT to test the constraining of the reactor
with --projects - rename the mojo execution scope directory to have a small description
Posted by Stephen Connolly <st...@gmail.com>.
Pity it wasn't two separate commits... but nevermind! not like we can
rewrite history on ASF git IIRC
On 6 January 2014 17:09, Jason van Zyl <ja...@tesla.io> wrote:
> It's two separate things, the MNG issue, and the renaming.
>
> On Jan 6, 2014, at 12:00 PM, Stephen Connolly <
> stephen.alan.connolly@gmail.com> wrote:
>
> > Is this the correct commit message?
> >
> >
> > On 6 January 2014 16:57, <jv...@apache.org> wrote:
> >
> >> Updated Branches:
> >> refs/heads/master fa0f5050b -> c01884d6d
> >>
> >>
> >> MNG-5557: IT to test the constraining of the reactor with --projects
> >> - rename the mojo execution scope directory to have a small description
> >>
> >>
> >> 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/c01884d6
> >> Tree:
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/c01884d6
> >> Diff:
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/c01884d6
> >>
> >> Branch: refs/heads/master
> >> Commit: c01884d6d4dbaca328edf6d8e238e6959449f25b
> >> Parents: fa0f505
> >> Author: Jason van Zyl <ja...@tesla.io>
> >> Authored: Mon Jan 6 11:55:57 2014 -0500
> >> Committer: Jason van Zyl <ja...@tesla.io>
> >> Committed: Mon Jan 6 11:55:57 2014 -0500
> >>
> >> ----------------------------------------------------------------------
> >> .../MavenITmng5530MojoExecutionScopeTest.java | 2 +-
> >> ...MavenITmng5557ProperlyRestrictedReactor.java | 65 ++++++++++++++
> >> .../mng-5530-mojo-execution-scope/basic/pom.xml | 51 +++++++++++
> >> .../plugin/pom.xml | 95
> ++++++++++++++++++++
> >> .../TestExecutionScopeMojo.java | 40 +++++++++
> >> .../TestExecutionScopedComponent.java | 90 +++++++++++++++++++
> >> .../src/test/resources/mng-5530/basic/pom.xml | 51 -----------
> >> .../src/test/resources/mng-5530/plugin/pom.xml | 95
> --------------------
> >> .../TestExecutionScopeMojo.java | 40 ---------
> >> .../TestExecutionScopedComponent.java | 90 -------------------
> >> .../pom.xml | 15 ++++
> >> .../project-0/pom.xml | 31 +++++++
> >> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> >> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> >> .../project-1/pom.xml | 26 ++++++
> >> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> >> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> >> .../project-2/pom.xml | 26 ++++++
> >> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> >> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> >> .../project-3/pom.xml | 26 ++++++
> >> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> >> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> >> .../project-4/pom.xml | 26 ++++++
> >> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> >> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> >> 26 files changed, 747 insertions(+), 277 deletions(-)
> >> ----------------------------------------------------------------------
> >>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> >>
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> >> index 6cac091..f9b45be 100644
> >> ---
> >>
> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> >> +++
> >>
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> >> @@ -34,7 +34,7 @@ public class MavenITmng5530MojoExecutionScopeTest
> >> public void test_copyfiles()
> >> throws Exception
> >> {
> >> - File testDir = ResourceExtractor.simpleExtractResources(
> >> getClass(), "/mng-5530");
> >> + File testDir = ResourceExtractor.simpleExtractResources(
> >> getClass(), "/mng-5530-mojo-execution-scope");
> >> File pluginDir = new File( testDir, "plugin" );
> >> File projectDir = new File( testDir, "basic" );
> >>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> >>
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> >> new file mode 100644
> >> index 0000000..2d2ce05
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> >> @@ -0,0 +1,65 @@
> >> +package org.apache.maven.it;
> >> +
> >> +/*
> >> + * 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.
> >> + */
> >> +
> >> +import java.io.File;
> >> +
> >> +import org.apache.maven.it.util.ResourceExtractor;
> >> +
> >> +/**
> >> + * Test to make sure that the reactor is properly constrained when
> >> --projects is used. Previous to 3.1.2 all of the
> >> + * projects found in the <modules/> section of the POM were passed into
> >> the reactor. This test is a 5 project
> >> + * multi-module project where only project-0, and project-1 are
> specified
> >> to be used. The project-0 has a dependency on
> >> + * project-4 and in this constrained mode the dependency resolution
> >> should fail because project-4 is no longer placed in
> >> + * the reactor.
> >> + *
> >> + * @author jvanzyl
> >> + */
> >> +public class MavenITmng5557ProperlyRestrictedReactor
> >> + extends AbstractMavenIntegrationTestCase
> >> +{
> >> + public MavenITmng5557ProperlyRestrictedReactor()
> >> + {
> >> + super( "[3.1.2,)" );
> >> + }
> >> +
> >> + public void testRunningRestrictedReactor()
> >> + throws Exception
> >> + {
> >> + File testDir = ResourceExtractor.simpleExtractResources(
> >> getClass(), "/mng-5557-properly-restricted-reactor" );
> >> + Verifier verifier = newVerifier( testDir.getAbsolutePath() );
> >> + //
> >> + // Remove everything related to this project from the local
> >> repository as we want this to be resolution purely
> >> + // from the reactor.
> >> + //
> >> + verifier.deleteArtifacts( "org.apache.maven.its.mng5557" );
> >> + verifier.addCliOption( "--projects project-0,project-1" );
> >> + try
> >> + {
> >> + verifier.executeGoal( "package" );
> >> + }
> >> + catch ( VerificationException e )
> >> + {
> >> + // the execution should fail due to a resolution error.
> >> + }
> >> + verifier.resetStreams();
> >> + verifier.verifyTextInLog( "Could not resolve dependencies for
> >> project org.apache.maven.its.mng5557:project-0:jar:1.0: Could not find
> >> artifact org.apache.maven.its.mng5557:project-4:jar:1.0" );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> >> new file mode 100644
> >> index 0000000..b17233d
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> >> @@ -0,0 +1,51 @@
> >> +<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> http://www.w3.org/2001/XMLSchema-instance"
> >> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/maven-v4_0_0.xsd">
> >> + <modelVersion>4.0.0</modelVersion>
> >> +
> >> + <groupId>io.tesla.its.mojoexecutionscope</groupId>
> >> + <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
> >> + <version>0.0.1-SNAPSHOT</version>
> >> + <packaging>jar</packaging>
> >> +
> >> + <build>
> >> + <plugins>
> >> + <plugin>
> >> +
> <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> >> + <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> >> + <version>0.1</version>
> >> + <extensions>true</extensions>
> >> + <executions>
> >> + <execution>
> >> + <id>test-execution-scope</id>
> >> + <goals>
> >> + <goal>test-execution-scope</goal>
> >> + </goals>
> >> + <phase>process-resources</phase>
> >> + </execution>
> >> + </executions>
> >> + </plugin>
> >> + </plugins>
> >> +
> >> + </build>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> >> new file mode 100644
> >> index 0000000..67bd766
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> >> @@ -0,0 +1,95 @@
> >> +<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> http://www.w3.org/2001/XMLSchema-instance"
> >> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/maven-v4_0_0.xsd">
> >> + <modelVersion>4.0.0</modelVersion>
> >> +
> >> + <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> >> + <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> >> + <version>0.1</version>
> >> + <packaging>maven-plugin</packaging>
> >> +
> >> + <properties>
> >> + <maven-version>[3.2.0-SNAPSHOT,)</maven-version>
> >> + </properties>
> >> +
> >> + <dependencies>
> >> + <dependency>
> >> + <groupId>org.apache.maven</groupId>
> >> + <artifactId>maven-plugin-api</artifactId>
> >> + <version>${maven-version}</version>
> >> + <scope>provided</scope>
> >> + </dependency>
> >> + <dependency>
> >> + <groupId>org.apache.maven</groupId>
> >> + <artifactId>maven-model</artifactId>
> >> + <version>${maven-version}</version>
> >> + <scope>provided</scope>
> >> + </dependency>
> >> + <dependency>
> >> + <groupId>org.apache.maven</groupId>
> >> + <artifactId>maven-core</artifactId>
> >> + <version>${maven-version}</version>
> >> + <scope>provided</scope>
> >> + </dependency>
> >> + </dependencies>
> >> +
> >> + <build>
> >> + <plugins>
> >> + <plugin>
> >> + <groupId>org.apache.maven.plugins</groupId>
> >> + <artifactId>maven-compiler-plugin</artifactId>
> >> + <version>2.0.2</version>
> >> + <configuration>
> >> + <source>1.5</source>
> >> + <target>1.5</target>
> >> + </configuration>
> >> + </plugin>
> >> + <plugin>
> >> + <groupId>org.sonatype.plugins</groupId>
> >> + <artifactId>sisu-maven-plugin</artifactId>
> >> + <version>1.1</version>
> >> + <executions>
> >> + <execution>
> >> + <goals>
> >> + <goal>main-index</goal>
> >> + <goal>test-index</goal>
> >> + </goals>
> >> + </execution>
> >> + </executions>
> >> + </plugin>
> >> + <plugin>
> >> + <groupId>org.codehaus.plexus</groupId>
> >> + <artifactId>plexus-component-metadata</artifactId>
> >> + <version>1.5.5</version>
> >> + <executions>
> >> + <execution>
> >> + <goals>
> >> + <goal>generate-metadata</goal>
> >> + <goal>generate-test-metadata</goal>
> >> + </goals>
> >> + </execution>
> >> + </executions>
> >> + </plugin>
> >> + </plugins>
> >> + </build>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >> new file mode 100644
> >> index 0000000..24d5c8a
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >> @@ -0,0 +1,40 @@
> >> +package org.apache.maven.its.mng5530.mojoexecutionscope;
> >> +
> >> +/*
> >> + * 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.
> >> + */
> >> +
> >> +import org.apache.maven.plugin.AbstractMojo;
> >> +import org.apache.maven.plugin.MojoExecutionException;
> >> +import org.apache.maven.plugin.MojoFailureException;
> >> +
> >> +/**
> >> + * @goal test-execution-scope
> >> + */
> >> +public class TestExecutionScopeMojo
> >> + extends AbstractMojo
> >> +{
> >> + /** @component */
> >> + private TestExecutionScopedComponent executionScopedComponent;
> >> +
> >> + public void execute()
> >> + throws MojoExecutionException, MojoFailureException
> >> + {
> >> + executionScopedComponent.recordExecute();
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >> new file mode 100644
> >> index 0000000..723d36c
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >> @@ -0,0 +1,90 @@
> >> +package org.apache.maven.its.mng5530.mojoexecutionscope;
> >> +
> >> +/*
> >> + * 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.
> >> + */
> >> +
> >> +import java.io.File;
> >> +import java.io.FileOutputStream;
> >> +import java.io.IOException;
> >> +
> >> +import javax.inject.Inject;
> >> +import javax.inject.Named;
> >> +
> >> +import org.apache.maven.execution.MavenSession;
> >> +import org.apache.maven.execution.MojoExecutionEvent;
> >> +import org.apache.maven.execution.scope.MojoExecutionScoped;
> >> +import org.apache.maven.execution.scope.WeakMojoExecutionListener;
> >> +import org.apache.maven.plugin.MojoExecution;
> >> +import org.apache.maven.plugin.MojoExecutionException;
> >> +import org.apache.maven.project.MavenProject;
> >> +
> >> +@Named
> >> +@MojoExecutionScoped
> >> +public class TestExecutionScopedComponent
> >> + implements WeakMojoExecutionListener
> >> +{
> >> + private final File basedir;
> >> +
> >> + private MavenSession session;
> >> +
> >> + private MojoExecution execution;
> >> +
> >> + @Inject
> >> + public TestExecutionScopedComponent( MavenSession session,
> >> MavenProject project, MojoExecution execution )
> >> + {
> >> + this.session = session;
> >> + this.execution = execution;
> >> + this.basedir = new File( project.getBuild().getDirectory() );
> >> + }
> >> +
> >> + public void recordExecute()
> >> + {
> >> + touch( new File( basedir, "execution-executed.txt" ) );
> >> + }
> >> +
> >> + private void touch( File file )
> >> + {
> >> + file.getParentFile().mkdirs();
> >> + try
> >> + {
> >> + new FileOutputStream( file ).close();
> >> + }
> >> + catch ( IOException e )
> >> + {
> >> + // ignore
> >> + }
> >> + }
> >> +
> >> + public void afterExecutionFailure( MojoExecutionEvent event )
> >> + {
> >> + touch( new File( basedir, "execution-failure.txt" ) );
> >> + }
> >> +
> >> + public void afterMojoExecutionSuccess( MojoExecutionEvent event )
> >> + throws MojoExecutionException
> >> + {
> >> + touch( new File( basedir, "execution-success.txt" ) );
> >> + }
> >> +
> >> + public void beforeMojoExecution( MojoExecutionEvent event )
> >> + throws MojoExecutionException
> >> + {
> >> + touch( new File( basedir, "execution-before.txt" ) );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> >> b/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> >> deleted file mode 100644
> >> index b17233d..0000000
> >> --- a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> >> +++ /dev/null
> >> @@ -1,51 +0,0 @@
> >> -<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> http://www.w3.org/2001/XMLSchema-instance"
> >> - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/maven-v4_0_0.xsd">
> >> - <modelVersion>4.0.0</modelVersion>
> >> -
> >> - <groupId>io.tesla.its.mojoexecutionscope</groupId>
> >> - <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
> >> - <version>0.0.1-SNAPSHOT</version>
> >> - <packaging>jar</packaging>
> >> -
> >> - <build>
> >> - <plugins>
> >> - <plugin>
> >> -
> <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> >> - <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> >> - <version>0.1</version>
> >> - <extensions>true</extensions>
> >> - <executions>
> >> - <execution>
> >> - <id>test-execution-scope</id>
> >> - <goals>
> >> - <goal>test-execution-scope</goal>
> >> - </goals>
> >> - <phase>process-resources</phase>
> >> - </execution>
> >> - </executions>
> >> - </plugin>
> >> - </plugins>
> >> -
> >> - </build>
> >> -</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> >> b/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> >> deleted file mode 100644
> >> index a98e9ca..0000000
> >> --- a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> >> +++ /dev/null
> >> @@ -1,95 +0,0 @@
> >> -<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> http://www.w3.org/2001/XMLSchema-instance"
> >> - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/maven-v4_0_0.xsd">
> >> - <modelVersion>4.0.0</modelVersion>
> >> -
> >> - <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> >> - <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> >> - <version>0.1</version>
> >> - <packaging>maven-plugin</packaging>
> >> -
> >> - <properties>
> >> - <maven-version>[3.1.2-SNAPSHOT,)</maven-version>
> >> - </properties>
> >> -
> >> - <dependencies>
> >> - <dependency>
> >> - <groupId>org.apache.maven</groupId>
> >> - <artifactId>maven-plugin-api</artifactId>
> >> - <version>${maven-version}</version>
> >> - <scope>provided</scope>
> >> - </dependency>
> >> - <dependency>
> >> - <groupId>org.apache.maven</groupId>
> >> - <artifactId>maven-model</artifactId>
> >> - <version>${maven-version}</version>
> >> - <scope>provided</scope>
> >> - </dependency>
> >> - <dependency>
> >> - <groupId>org.apache.maven</groupId>
> >> - <artifactId>maven-core</artifactId>
> >> - <version>${maven-version}</version>
> >> - <scope>provided</scope>
> >> - </dependency>
> >> - </dependencies>
> >> -
> >> - <build>
> >> - <plugins>
> >> - <plugin>
> >> - <groupId>org.apache.maven.plugins</groupId>
> >> - <artifactId>maven-compiler-plugin</artifactId>
> >> - <version>2.0.2</version>
> >> - <configuration>
> >> - <source>1.5</source>
> >> - <target>1.5</target>
> >> - </configuration>
> >> - </plugin>
> >> - <plugin>
> >> - <groupId>org.sonatype.plugins</groupId>
> >> - <artifactId>sisu-maven-plugin</artifactId>
> >> - <version>1.1</version>
> >> - <executions>
> >> - <execution>
> >> - <goals>
> >> - <goal>main-index</goal>
> >> - <goal>test-index</goal>
> >> - </goals>
> >> - </execution>
> >> - </executions>
> >> - </plugin>
> >> - <plugin>
> >> - <groupId>org.codehaus.plexus</groupId>
> >> - <artifactId>plexus-component-metadata</artifactId>
> >> - <version>1.5.5</version>
> >> - <executions>
> >> - <execution>
> >> - <goals>
> >> - <goal>generate-metadata</goal>
> >> - <goal>generate-test-metadata</goal>
> >> - </goals>
> >> - </execution>
> >> - </executions>
> >> - </plugin>
> >> - </plugins>
> >> - </build>
> >> -</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >>
> b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >> deleted file mode 100644
> >> index 24d5c8a..0000000
> >> ---
> >>
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> >> +++ /dev/null
> >> @@ -1,40 +0,0 @@
> >> -package org.apache.maven.its.mng5530.mojoexecutionscope;
> >> -
> >> -/*
> >> - * 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.
> >> - */
> >> -
> >> -import org.apache.maven.plugin.AbstractMojo;
> >> -import org.apache.maven.plugin.MojoExecutionException;
> >> -import org.apache.maven.plugin.MojoFailureException;
> >> -
> >> -/**
> >> - * @goal test-execution-scope
> >> - */
> >> -public class TestExecutionScopeMojo
> >> - extends AbstractMojo
> >> -{
> >> - /** @component */
> >> - private TestExecutionScopedComponent executionScopedComponent;
> >> -
> >> - public void execute()
> >> - throws MojoExecutionException, MojoFailureException
> >> - {
> >> - executionScopedComponent.recordExecute();
> >> - }
> >> -}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >>
> b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >> deleted file mode 100644
> >> index 723d36c..0000000
> >> ---
> >>
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> >> +++ /dev/null
> >> @@ -1,90 +0,0 @@
> >> -package org.apache.maven.its.mng5530.mojoexecutionscope;
> >> -
> >> -/*
> >> - * 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.
> >> - */
> >> -
> >> -import java.io.File;
> >> -import java.io.FileOutputStream;
> >> -import java.io.IOException;
> >> -
> >> -import javax.inject.Inject;
> >> -import javax.inject.Named;
> >> -
> >> -import org.apache.maven.execution.MavenSession;
> >> -import org.apache.maven.execution.MojoExecutionEvent;
> >> -import org.apache.maven.execution.scope.MojoExecutionScoped;
> >> -import org.apache.maven.execution.scope.WeakMojoExecutionListener;
> >> -import org.apache.maven.plugin.MojoExecution;
> >> -import org.apache.maven.plugin.MojoExecutionException;
> >> -import org.apache.maven.project.MavenProject;
> >> -
> >> -@Named
> >> -@MojoExecutionScoped
> >> -public class TestExecutionScopedComponent
> >> - implements WeakMojoExecutionListener
> >> -{
> >> - private final File basedir;
> >> -
> >> - private MavenSession session;
> >> -
> >> - private MojoExecution execution;
> >> -
> >> - @Inject
> >> - public TestExecutionScopedComponent( MavenSession session,
> >> MavenProject project, MojoExecution execution )
> >> - {
> >> - this.session = session;
> >> - this.execution = execution;
> >> - this.basedir = new File( project.getBuild().getDirectory() );
> >> - }
> >> -
> >> - public void recordExecute()
> >> - {
> >> - touch( new File( basedir, "execution-executed.txt" ) );
> >> - }
> >> -
> >> - private void touch( File file )
> >> - {
> >> - file.getParentFile().mkdirs();
> >> - try
> >> - {
> >> - new FileOutputStream( file ).close();
> >> - }
> >> - catch ( IOException e )
> >> - {
> >> - // ignore
> >> - }
> >> - }
> >> -
> >> - public void afterExecutionFailure( MojoExecutionEvent event )
> >> - {
> >> - touch( new File( basedir, "execution-failure.txt" ) );
> >> - }
> >> -
> >> - public void afterMojoExecutionSuccess( MojoExecutionEvent event )
> >> - throws MojoExecutionException
> >> - {
> >> - touch( new File( basedir, "execution-success.txt" ) );
> >> - }
> >> -
> >> - public void beforeMojoExecution( MojoExecutionEvent event )
> >> - throws MojoExecutionException
> >> - {
> >> - touch( new File( basedir, "execution-before.txt" ) );
> >> - }
> >> -}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> >> new file mode 100644
> >> index 0000000..54aab39
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> >> @@ -0,0 +1,15 @@
> >> +<?xml version="1.0" encoding="UTF-8"?>
> >> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> >> http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> >> + <modelVersion>4.0.0</modelVersion>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>parent</artifactId>
> >> + <version>1.0</version>
> >> + <packaging>pom</packaging>
> >> + <modules>
> >> + <module>project-0</module>
> >> + <module>project-1</module>
> >> + <module>project-2</module>
> >> + <module>project-3</module>
> >> + <module>project-4</module>
> >> + </modules>
> >> +</project>
> >> \ No newline at end of file
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> >> new file mode 100644
> >> index 0000000..46d1a1a
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> >> @@ -0,0 +1,31 @@
> >> +<?xml version="1.0"?>
> >> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> >> http://maven.apache.org/POM/4.0.0"
> >> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >> + <modelVersion>4.0.0</modelVersion>
> >> + <parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>parent</artifactId>
> >> + <version>1.0</version>
> >> + </parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>project-0</artifactId>
> >> + <version>1.0</version>
> >> + <name>project-0</name>
> >> + <url>http://maven.apache.org</url>
> >> + <properties>
> >> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >> + </properties>
> >> + <dependencies>
> >> + <dependency>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>project-4</artifactId>
> >> + <version>1.0</version>
> >> + </dependency>
> >> + <dependency>
> >> + <groupId>junit</groupId>
> >> + <artifactId>junit</artifactId>
> >> + <version>3.8.1</version>
> >> + <scope>test</scope>
> >> + </dependency>
> >> + </dependencies>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> >> new file mode 100644
> >> index 0000000..727deaf
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> >> @@ -0,0 +1,13 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +/**
> >> + * Hello world!
> >> + *
> >> + */
> >> +public class App
> >> +{
> >> + public static void main( String[] args )
> >> + {
> >> + System.out.println( "Hello World!" );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> new file mode 100644
> >> index 0000000..422f488
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> @@ -0,0 +1,38 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +import junit.framework.Test;
> >> +import junit.framework.TestCase;
> >> +import junit.framework.TestSuite;
> >> +
> >> +/**
> >> + * Unit test for simple App.
> >> + */
> >> +public class AppTest
> >> + extends TestCase
> >> +{
> >> + /**
> >> + * Create the test case
> >> + *
> >> + * @param testName name of the test case
> >> + */
> >> + public AppTest( String testName )
> >> + {
> >> + super( testName );
> >> + }
> >> +
> >> + /**
> >> + * @return the suite of tests being tested
> >> + */
> >> + public static Test suite()
> >> + {
> >> + return new TestSuite( AppTest.class );
> >> + }
> >> +
> >> + /**
> >> + * Rigourous Test :-)
> >> + */
> >> + public void testApp()
> >> + {
> >> + assertTrue( true );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> >> new file mode 100644
> >> index 0000000..2742b65
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> >> @@ -0,0 +1,26 @@
> >> +<?xml version="1.0"?>
> >> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> >> http://maven.apache.org/POM/4.0.0"
> >> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >> + <modelVersion>4.0.0</modelVersion>
> >> + <parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>parent</artifactId>
> >> + <version>1.0</version>
> >> + </parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>project-1</artifactId>
> >> + <version>1.0</version>
> >> + <name>project-1</name>
> >> + <url>http://maven.apache.org</url>
> >> + <properties>
> >> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >> + </properties>
> >> + <dependencies>
> >> + <dependency>
> >> + <groupId>junit</groupId>
> >> + <artifactId>junit</artifactId>
> >> + <version>3.8.1</version>
> >> + <scope>test</scope>
> >> + </dependency>
> >> + </dependencies>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> >> new file mode 100644
> >> index 0000000..727deaf
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> >> @@ -0,0 +1,13 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +/**
> >> + * Hello world!
> >> + *
> >> + */
> >> +public class App
> >> +{
> >> + public static void main( String[] args )
> >> + {
> >> + System.out.println( "Hello World!" );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> new file mode 100644
> >> index 0000000..422f488
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> @@ -0,0 +1,38 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +import junit.framework.Test;
> >> +import junit.framework.TestCase;
> >> +import junit.framework.TestSuite;
> >> +
> >> +/**
> >> + * Unit test for simple App.
> >> + */
> >> +public class AppTest
> >> + extends TestCase
> >> +{
> >> + /**
> >> + * Create the test case
> >> + *
> >> + * @param testName name of the test case
> >> + */
> >> + public AppTest( String testName )
> >> + {
> >> + super( testName );
> >> + }
> >> +
> >> + /**
> >> + * @return the suite of tests being tested
> >> + */
> >> + public static Test suite()
> >> + {
> >> + return new TestSuite( AppTest.class );
> >> + }
> >> +
> >> + /**
> >> + * Rigourous Test :-)
> >> + */
> >> + public void testApp()
> >> + {
> >> + assertTrue( true );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> >> new file mode 100644
> >> index 0000000..c627a13
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> >> @@ -0,0 +1,26 @@
> >> +<?xml version="1.0"?>
> >> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> >> http://maven.apache.org/POM/4.0.0"
> >> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >> + <modelVersion>4.0.0</modelVersion>
> >> + <parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>parent</artifactId>
> >> + <version>1.0</version>
> >> + </parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>project-2</artifactId>
> >> + <version>1.0</version>
> >> + <name>project-2</name>
> >> + <url>http://maven.apache.org</url>
> >> + <properties>
> >> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >> + </properties>
> >> + <dependencies>
> >> + <dependency>
> >> + <groupId>junit</groupId>
> >> + <artifactId>junit</artifactId>
> >> + <version>3.8.1</version>
> >> + <scope>test</scope>
> >> + </dependency>
> >> + </dependencies>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> >> new file mode 100644
> >> index 0000000..727deaf
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> >> @@ -0,0 +1,13 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +/**
> >> + * Hello world!
> >> + *
> >> + */
> >> +public class App
> >> +{
> >> + public static void main( String[] args )
> >> + {
> >> + System.out.println( "Hello World!" );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> new file mode 100644
> >> index 0000000..422f488
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> @@ -0,0 +1,38 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +import junit.framework.Test;
> >> +import junit.framework.TestCase;
> >> +import junit.framework.TestSuite;
> >> +
> >> +/**
> >> + * Unit test for simple App.
> >> + */
> >> +public class AppTest
> >> + extends TestCase
> >> +{
> >> + /**
> >> + * Create the test case
> >> + *
> >> + * @param testName name of the test case
> >> + */
> >> + public AppTest( String testName )
> >> + {
> >> + super( testName );
> >> + }
> >> +
> >> + /**
> >> + * @return the suite of tests being tested
> >> + */
> >> + public static Test suite()
> >> + {
> >> + return new TestSuite( AppTest.class );
> >> + }
> >> +
> >> + /**
> >> + * Rigourous Test :-)
> >> + */
> >> + public void testApp()
> >> + {
> >> + assertTrue( true );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> >> new file mode 100644
> >> index 0000000..5d3b117
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> >> @@ -0,0 +1,26 @@
> >> +<?xml version="1.0"?>
> >> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> >> http://maven.apache.org/POM/4.0.0"
> >> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >> + <modelVersion>4.0.0</modelVersion>
> >> + <parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>parent</artifactId>
> >> + <version>1.0</version>
> >> + </parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>project-3</artifactId>
> >> + <version>1.0</version>
> >> + <name>project-3</name>
> >> + <url>http://maven.apache.org</url>
> >> + <properties>
> >> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >> + </properties>
> >> + <dependencies>
> >> + <dependency>
> >> + <groupId>junit</groupId>
> >> + <artifactId>junit</artifactId>
> >> + <version>3.8.1</version>
> >> + <scope>test</scope>
> >> + </dependency>
> >> + </dependencies>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> >> new file mode 100644
> >> index 0000000..727deaf
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> >> @@ -0,0 +1,13 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +/**
> >> + * Hello world!
> >> + *
> >> + */
> >> +public class App
> >> +{
> >> + public static void main( String[] args )
> >> + {
> >> + System.out.println( "Hello World!" );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> new file mode 100644
> >> index 0000000..422f488
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> @@ -0,0 +1,38 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +import junit.framework.Test;
> >> +import junit.framework.TestCase;
> >> +import junit.framework.TestSuite;
> >> +
> >> +/**
> >> + * Unit test for simple App.
> >> + */
> >> +public class AppTest
> >> + extends TestCase
> >> +{
> >> + /**
> >> + * Create the test case
> >> + *
> >> + * @param testName name of the test case
> >> + */
> >> + public AppTest( String testName )
> >> + {
> >> + super( testName );
> >> + }
> >> +
> >> + /**
> >> + * @return the suite of tests being tested
> >> + */
> >> + public static Test suite()
> >> + {
> >> + return new TestSuite( AppTest.class );
> >> + }
> >> +
> >> + /**
> >> + * Rigourous Test :-)
> >> + */
> >> + public void testApp()
> >> + {
> >> + assertTrue( true );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> >> new file mode 100644
> >> index 0000000..0bd4660
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> >> @@ -0,0 +1,26 @@
> >> +<?xml version="1.0"?>
> >> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> >> http://maven.apache.org/POM/4.0.0"
> >> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >> + <modelVersion>4.0.0</modelVersion>
> >> + <parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>parent</artifactId>
> >> + <version>1.0</version>
> >> + </parent>
> >> + <groupId>org.apache.maven.its.mng5557</groupId>
> >> + <artifactId>project-4</artifactId>
> >> + <version>1.0</version>
> >> + <name>project-4</name>
> >> + <url>http://maven.apache.org</url>
> >> + <properties>
> >> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >> + </properties>
> >> + <dependencies>
> >> + <dependency>
> >> + <groupId>junit</groupId>
> >> + <artifactId>junit</artifactId>
> >> + <version>3.8.1</version>
> >> + <scope>test</scope>
> >> + </dependency>
> >> + </dependencies>
> >> +</project>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> >> new file mode 100644
> >> index 0000000..727deaf
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> >> @@ -0,0 +1,13 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +/**
> >> + * Hello world!
> >> + *
> >> + */
> >> +public class App
> >> +{
> >> + public static void main( String[] args )
> >> + {
> >> + System.out.println( "Hello World!" );
> >> + }
> >> +}
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> ----------------------------------------------------------------------
> >> diff --git
> >>
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> new file mode 100644
> >> index 0000000..422f488
> >> --- /dev/null
> >> +++
> >>
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> >> @@ -0,0 +1,38 @@
> >> +package org.apache.maven.its.mng5557;
> >> +
> >> +import junit.framework.Test;
> >> +import junit.framework.TestCase;
> >> +import junit.framework.TestSuite;
> >> +
> >> +/**
> >> + * Unit test for simple App.
> >> + */
> >> +public class AppTest
> >> + extends TestCase
> >> +{
> >> + /**
> >> + * Create the test case
> >> + *
> >> + * @param testName name of the test case
> >> + */
> >> + public AppTest( String testName )
> >> + {
> >> + super( testName );
> >> + }
> >> +
> >> + /**
> >> + * @return the suite of tests being tested
> >> + */
> >> + public static Test suite()
> >> + {
> >> + return new TestSuite( AppTest.class );
> >> + }
> >> +
> >> + /**
> >> + * Rigourous Test :-)
> >> + */
> >> + public void testApp()
> >> + {
> >> + assertTrue( true );
> >> + }
> >> +}
> >>
> >>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> http://twitter.com/jvanzyl
> ---------------------------------------------------------
>
>
>
>
>
>
>
>
Re: git commit: MNG-5557: IT to test the constraining of the reactor with --projects - rename the mojo execution scope directory to have a small description
Posted by Jason van Zyl <ja...@tesla.io>.
It's two separate things, the MNG issue, and the renaming.
On Jan 6, 2014, at 12:00 PM, Stephen Connolly <st...@gmail.com> wrote:
> Is this the correct commit message?
>
>
> On 6 January 2014 16:57, <jv...@apache.org> wrote:
>
>> Updated Branches:
>> refs/heads/master fa0f5050b -> c01884d6d
>>
>>
>> MNG-5557: IT to test the constraining of the reactor with --projects
>> - rename the mojo execution scope directory to have a small description
>>
>>
>> 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/c01884d6
>> Tree:
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/c01884d6
>> Diff:
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/c01884d6
>>
>> Branch: refs/heads/master
>> Commit: c01884d6d4dbaca328edf6d8e238e6959449f25b
>> Parents: fa0f505
>> Author: Jason van Zyl <ja...@tesla.io>
>> Authored: Mon Jan 6 11:55:57 2014 -0500
>> Committer: Jason van Zyl <ja...@tesla.io>
>> Committed: Mon Jan 6 11:55:57 2014 -0500
>>
>> ----------------------------------------------------------------------
>> .../MavenITmng5530MojoExecutionScopeTest.java | 2 +-
>> ...MavenITmng5557ProperlyRestrictedReactor.java | 65 ++++++++++++++
>> .../mng-5530-mojo-execution-scope/basic/pom.xml | 51 +++++++++++
>> .../plugin/pom.xml | 95 ++++++++++++++++++++
>> .../TestExecutionScopeMojo.java | 40 +++++++++
>> .../TestExecutionScopedComponent.java | 90 +++++++++++++++++++
>> .../src/test/resources/mng-5530/basic/pom.xml | 51 -----------
>> .../src/test/resources/mng-5530/plugin/pom.xml | 95 --------------------
>> .../TestExecutionScopeMojo.java | 40 ---------
>> .../TestExecutionScopedComponent.java | 90 -------------------
>> .../pom.xml | 15 ++++
>> .../project-0/pom.xml | 31 +++++++
>> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
>> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
>> .../project-1/pom.xml | 26 ++++++
>> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
>> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
>> .../project-2/pom.xml | 26 ++++++
>> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
>> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
>> .../project-3/pom.xml | 26 ++++++
>> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
>> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
>> .../project-4/pom.xml | 26 ++++++
>> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
>> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
>> 26 files changed, 747 insertions(+), 277 deletions(-)
>> ----------------------------------------------------------------------
>>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
>> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
>> index 6cac091..f9b45be 100644
>> ---
>> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
>> +++
>> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
>> @@ -34,7 +34,7 @@ public class MavenITmng5530MojoExecutionScopeTest
>> public void test_copyfiles()
>> throws Exception
>> {
>> - File testDir = ResourceExtractor.simpleExtractResources(
>> getClass(), "/mng-5530");
>> + File testDir = ResourceExtractor.simpleExtractResources(
>> getClass(), "/mng-5530-mojo-execution-scope");
>> File pluginDir = new File( testDir, "plugin" );
>> File projectDir = new File( testDir, "basic" );
>>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
>> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
>> new file mode 100644
>> index 0000000..2d2ce05
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
>> @@ -0,0 +1,65 @@
>> +package org.apache.maven.it;
>> +
>> +/*
>> + * 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.
>> + */
>> +
>> +import java.io.File;
>> +
>> +import org.apache.maven.it.util.ResourceExtractor;
>> +
>> +/**
>> + * Test to make sure that the reactor is properly constrained when
>> --projects is used. Previous to 3.1.2 all of the
>> + * projects found in the <modules/> section of the POM were passed into
>> the reactor. This test is a 5 project
>> + * multi-module project where only project-0, and project-1 are specified
>> to be used. The project-0 has a dependency on
>> + * project-4 and in this constrained mode the dependency resolution
>> should fail because project-4 is no longer placed in
>> + * the reactor.
>> + *
>> + * @author jvanzyl
>> + */
>> +public class MavenITmng5557ProperlyRestrictedReactor
>> + extends AbstractMavenIntegrationTestCase
>> +{
>> + public MavenITmng5557ProperlyRestrictedReactor()
>> + {
>> + super( "[3.1.2,)" );
>> + }
>> +
>> + public void testRunningRestrictedReactor()
>> + throws Exception
>> + {
>> + File testDir = ResourceExtractor.simpleExtractResources(
>> getClass(), "/mng-5557-properly-restricted-reactor" );
>> + Verifier verifier = newVerifier( testDir.getAbsolutePath() );
>> + //
>> + // Remove everything related to this project from the local
>> repository as we want this to be resolution purely
>> + // from the reactor.
>> + //
>> + verifier.deleteArtifacts( "org.apache.maven.its.mng5557" );
>> + verifier.addCliOption( "--projects project-0,project-1" );
>> + try
>> + {
>> + verifier.executeGoal( "package" );
>> + }
>> + catch ( VerificationException e )
>> + {
>> + // the execution should fail due to a resolution error.
>> + }
>> + verifier.resetStreams();
>> + verifier.verifyTextInLog( "Could not resolve dependencies for
>> project org.apache.maven.its.mng5557:project-0:jar:1.0: Could not find
>> artifact org.apache.maven.its.mng5557:project-4:jar:1.0" );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
>> new file mode 100644
>> index 0000000..b17233d
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
>> @@ -0,0 +1,51 @@
>> +<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"
>> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> + <modelVersion>4.0.0</modelVersion>
>> +
>> + <groupId>io.tesla.its.mojoexecutionscope</groupId>
>> + <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
>> + <version>0.0.1-SNAPSHOT</version>
>> + <packaging>jar</packaging>
>> +
>> + <build>
>> + <plugins>
>> + <plugin>
>> + <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
>> + <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
>> + <version>0.1</version>
>> + <extensions>true</extensions>
>> + <executions>
>> + <execution>
>> + <id>test-execution-scope</id>
>> + <goals>
>> + <goal>test-execution-scope</goal>
>> + </goals>
>> + <phase>process-resources</phase>
>> + </execution>
>> + </executions>
>> + </plugin>
>> + </plugins>
>> +
>> + </build>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
>> new file mode 100644
>> index 0000000..67bd766
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
>> @@ -0,0 +1,95 @@
>> +<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"
>> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> + <modelVersion>4.0.0</modelVersion>
>> +
>> + <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
>> + <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
>> + <version>0.1</version>
>> + <packaging>maven-plugin</packaging>
>> +
>> + <properties>
>> + <maven-version>[3.2.0-SNAPSHOT,)</maven-version>
>> + </properties>
>> +
>> + <dependencies>
>> + <dependency>
>> + <groupId>org.apache.maven</groupId>
>> + <artifactId>maven-plugin-api</artifactId>
>> + <version>${maven-version}</version>
>> + <scope>provided</scope>
>> + </dependency>
>> + <dependency>
>> + <groupId>org.apache.maven</groupId>
>> + <artifactId>maven-model</artifactId>
>> + <version>${maven-version}</version>
>> + <scope>provided</scope>
>> + </dependency>
>> + <dependency>
>> + <groupId>org.apache.maven</groupId>
>> + <artifactId>maven-core</artifactId>
>> + <version>${maven-version}</version>
>> + <scope>provided</scope>
>> + </dependency>
>> + </dependencies>
>> +
>> + <build>
>> + <plugins>
>> + <plugin>
>> + <groupId>org.apache.maven.plugins</groupId>
>> + <artifactId>maven-compiler-plugin</artifactId>
>> + <version>2.0.2</version>
>> + <configuration>
>> + <source>1.5</source>
>> + <target>1.5</target>
>> + </configuration>
>> + </plugin>
>> + <plugin>
>> + <groupId>org.sonatype.plugins</groupId>
>> + <artifactId>sisu-maven-plugin</artifactId>
>> + <version>1.1</version>
>> + <executions>
>> + <execution>
>> + <goals>
>> + <goal>main-index</goal>
>> + <goal>test-index</goal>
>> + </goals>
>> + </execution>
>> + </executions>
>> + </plugin>
>> + <plugin>
>> + <groupId>org.codehaus.plexus</groupId>
>> + <artifactId>plexus-component-metadata</artifactId>
>> + <version>1.5.5</version>
>> + <executions>
>> + <execution>
>> + <goals>
>> + <goal>generate-metadata</goal>
>> + <goal>generate-test-metadata</goal>
>> + </goals>
>> + </execution>
>> + </executions>
>> + </plugin>
>> + </plugins>
>> + </build>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> new file mode 100644
>> index 0000000..24d5c8a
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> @@ -0,0 +1,40 @@
>> +package org.apache.maven.its.mng5530.mojoexecutionscope;
>> +
>> +/*
>> + * 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.
>> + */
>> +
>> +import org.apache.maven.plugin.AbstractMojo;
>> +import org.apache.maven.plugin.MojoExecutionException;
>> +import org.apache.maven.plugin.MojoFailureException;
>> +
>> +/**
>> + * @goal test-execution-scope
>> + */
>> +public class TestExecutionScopeMojo
>> + extends AbstractMojo
>> +{
>> + /** @component */
>> + private TestExecutionScopedComponent executionScopedComponent;
>> +
>> + public void execute()
>> + throws MojoExecutionException, MojoFailureException
>> + {
>> + executionScopedComponent.recordExecute();
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> new file mode 100644
>> index 0000000..723d36c
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> @@ -0,0 +1,90 @@
>> +package org.apache.maven.its.mng5530.mojoexecutionscope;
>> +
>> +/*
>> + * 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.
>> + */
>> +
>> +import java.io.File;
>> +import java.io.FileOutputStream;
>> +import java.io.IOException;
>> +
>> +import javax.inject.Inject;
>> +import javax.inject.Named;
>> +
>> +import org.apache.maven.execution.MavenSession;
>> +import org.apache.maven.execution.MojoExecutionEvent;
>> +import org.apache.maven.execution.scope.MojoExecutionScoped;
>> +import org.apache.maven.execution.scope.WeakMojoExecutionListener;
>> +import org.apache.maven.plugin.MojoExecution;
>> +import org.apache.maven.plugin.MojoExecutionException;
>> +import org.apache.maven.project.MavenProject;
>> +
>> +@Named
>> +@MojoExecutionScoped
>> +public class TestExecutionScopedComponent
>> + implements WeakMojoExecutionListener
>> +{
>> + private final File basedir;
>> +
>> + private MavenSession session;
>> +
>> + private MojoExecution execution;
>> +
>> + @Inject
>> + public TestExecutionScopedComponent( MavenSession session,
>> MavenProject project, MojoExecution execution )
>> + {
>> + this.session = session;
>> + this.execution = execution;
>> + this.basedir = new File( project.getBuild().getDirectory() );
>> + }
>> +
>> + public void recordExecute()
>> + {
>> + touch( new File( basedir, "execution-executed.txt" ) );
>> + }
>> +
>> + private void touch( File file )
>> + {
>> + file.getParentFile().mkdirs();
>> + try
>> + {
>> + new FileOutputStream( file ).close();
>> + }
>> + catch ( IOException e )
>> + {
>> + // ignore
>> + }
>> + }
>> +
>> + public void afterExecutionFailure( MojoExecutionEvent event )
>> + {
>> + touch( new File( basedir, "execution-failure.txt" ) );
>> + }
>> +
>> + public void afterMojoExecutionSuccess( MojoExecutionEvent event )
>> + throws MojoExecutionException
>> + {
>> + touch( new File( basedir, "execution-success.txt" ) );
>> + }
>> +
>> + public void beforeMojoExecution( MojoExecutionEvent event )
>> + throws MojoExecutionException
>> + {
>> + touch( new File( basedir, "execution-before.txt" ) );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
>> b/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
>> deleted file mode 100644
>> index b17233d..0000000
>> --- a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
>> +++ /dev/null
>> @@ -1,51 +0,0 @@
>> -<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"
>> - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> - <modelVersion>4.0.0</modelVersion>
>> -
>> - <groupId>io.tesla.its.mojoexecutionscope</groupId>
>> - <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
>> - <version>0.0.1-SNAPSHOT</version>
>> - <packaging>jar</packaging>
>> -
>> - <build>
>> - <plugins>
>> - <plugin>
>> - <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
>> - <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
>> - <version>0.1</version>
>> - <extensions>true</extensions>
>> - <executions>
>> - <execution>
>> - <id>test-execution-scope</id>
>> - <goals>
>> - <goal>test-execution-scope</goal>
>> - </goals>
>> - <phase>process-resources</phase>
>> - </execution>
>> - </executions>
>> - </plugin>
>> - </plugins>
>> -
>> - </build>
>> -</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
>> b/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
>> deleted file mode 100644
>> index a98e9ca..0000000
>> --- a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
>> +++ /dev/null
>> @@ -1,95 +0,0 @@
>> -<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"
>> - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> - <modelVersion>4.0.0</modelVersion>
>> -
>> - <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
>> - <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
>> - <version>0.1</version>
>> - <packaging>maven-plugin</packaging>
>> -
>> - <properties>
>> - <maven-version>[3.1.2-SNAPSHOT,)</maven-version>
>> - </properties>
>> -
>> - <dependencies>
>> - <dependency>
>> - <groupId>org.apache.maven</groupId>
>> - <artifactId>maven-plugin-api</artifactId>
>> - <version>${maven-version}</version>
>> - <scope>provided</scope>
>> - </dependency>
>> - <dependency>
>> - <groupId>org.apache.maven</groupId>
>> - <artifactId>maven-model</artifactId>
>> - <version>${maven-version}</version>
>> - <scope>provided</scope>
>> - </dependency>
>> - <dependency>
>> - <groupId>org.apache.maven</groupId>
>> - <artifactId>maven-core</artifactId>
>> - <version>${maven-version}</version>
>> - <scope>provided</scope>
>> - </dependency>
>> - </dependencies>
>> -
>> - <build>
>> - <plugins>
>> - <plugin>
>> - <groupId>org.apache.maven.plugins</groupId>
>> - <artifactId>maven-compiler-plugin</artifactId>
>> - <version>2.0.2</version>
>> - <configuration>
>> - <source>1.5</source>
>> - <target>1.5</target>
>> - </configuration>
>> - </plugin>
>> - <plugin>
>> - <groupId>org.sonatype.plugins</groupId>
>> - <artifactId>sisu-maven-plugin</artifactId>
>> - <version>1.1</version>
>> - <executions>
>> - <execution>
>> - <goals>
>> - <goal>main-index</goal>
>> - <goal>test-index</goal>
>> - </goals>
>> - </execution>
>> - </executions>
>> - </plugin>
>> - <plugin>
>> - <groupId>org.codehaus.plexus</groupId>
>> - <artifactId>plexus-component-metadata</artifactId>
>> - <version>1.5.5</version>
>> - <executions>
>> - <execution>
>> - <goals>
>> - <goal>generate-metadata</goal>
>> - <goal>generate-test-metadata</goal>
>> - </goals>
>> - </execution>
>> - </executions>
>> - </plugin>
>> - </plugins>
>> - </build>
>> -</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> deleted file mode 100644
>> index 24d5c8a..0000000
>> ---
>> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
>> +++ /dev/null
>> @@ -1,40 +0,0 @@
>> -package org.apache.maven.its.mng5530.mojoexecutionscope;
>> -
>> -/*
>> - * 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.
>> - */
>> -
>> -import org.apache.maven.plugin.AbstractMojo;
>> -import org.apache.maven.plugin.MojoExecutionException;
>> -import org.apache.maven.plugin.MojoFailureException;
>> -
>> -/**
>> - * @goal test-execution-scope
>> - */
>> -public class TestExecutionScopeMojo
>> - extends AbstractMojo
>> -{
>> - /** @component */
>> - private TestExecutionScopedComponent executionScopedComponent;
>> -
>> - public void execute()
>> - throws MojoExecutionException, MojoFailureException
>> - {
>> - executionScopedComponent.recordExecute();
>> - }
>> -}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> deleted file mode 100644
>> index 723d36c..0000000
>> ---
>> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
>> +++ /dev/null
>> @@ -1,90 +0,0 @@
>> -package org.apache.maven.its.mng5530.mojoexecutionscope;
>> -
>> -/*
>> - * 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.
>> - */
>> -
>> -import java.io.File;
>> -import java.io.FileOutputStream;
>> -import java.io.IOException;
>> -
>> -import javax.inject.Inject;
>> -import javax.inject.Named;
>> -
>> -import org.apache.maven.execution.MavenSession;
>> -import org.apache.maven.execution.MojoExecutionEvent;
>> -import org.apache.maven.execution.scope.MojoExecutionScoped;
>> -import org.apache.maven.execution.scope.WeakMojoExecutionListener;
>> -import org.apache.maven.plugin.MojoExecution;
>> -import org.apache.maven.plugin.MojoExecutionException;
>> -import org.apache.maven.project.MavenProject;
>> -
>> -@Named
>> -@MojoExecutionScoped
>> -public class TestExecutionScopedComponent
>> - implements WeakMojoExecutionListener
>> -{
>> - private final File basedir;
>> -
>> - private MavenSession session;
>> -
>> - private MojoExecution execution;
>> -
>> - @Inject
>> - public TestExecutionScopedComponent( MavenSession session,
>> MavenProject project, MojoExecution execution )
>> - {
>> - this.session = session;
>> - this.execution = execution;
>> - this.basedir = new File( project.getBuild().getDirectory() );
>> - }
>> -
>> - public void recordExecute()
>> - {
>> - touch( new File( basedir, "execution-executed.txt" ) );
>> - }
>> -
>> - private void touch( File file )
>> - {
>> - file.getParentFile().mkdirs();
>> - try
>> - {
>> - new FileOutputStream( file ).close();
>> - }
>> - catch ( IOException e )
>> - {
>> - // ignore
>> - }
>> - }
>> -
>> - public void afterExecutionFailure( MojoExecutionEvent event )
>> - {
>> - touch( new File( basedir, "execution-failure.txt" ) );
>> - }
>> -
>> - public void afterMojoExecutionSuccess( MojoExecutionEvent event )
>> - throws MojoExecutionException
>> - {
>> - touch( new File( basedir, "execution-success.txt" ) );
>> - }
>> -
>> - public void beforeMojoExecution( MojoExecutionEvent event )
>> - throws MojoExecutionException
>> - {
>> - touch( new File( basedir, "execution-before.txt" ) );
>> - }
>> -}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
>> new file mode 100644
>> index 0000000..54aab39
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
>> @@ -0,0 +1,15 @@
>> +<?xml version="1.0" encoding="UTF-8"?>
>> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>> http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>> + <modelVersion>4.0.0</modelVersion>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>parent</artifactId>
>> + <version>1.0</version>
>> + <packaging>pom</packaging>
>> + <modules>
>> + <module>project-0</module>
>> + <module>project-1</module>
>> + <module>project-2</module>
>> + <module>project-3</module>
>> + <module>project-4</module>
>> + </modules>
>> +</project>
>> \ No newline at end of file
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
>> new file mode 100644
>> index 0000000..46d1a1a
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
>> @@ -0,0 +1,31 @@
>> +<?xml version="1.0"?>
>> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
>> http://maven.apache.org/POM/4.0.0"
>> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> + <modelVersion>4.0.0</modelVersion>
>> + <parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>parent</artifactId>
>> + <version>1.0</version>
>> + </parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>project-0</artifactId>
>> + <version>1.0</version>
>> + <name>project-0</name>
>> + <url>http://maven.apache.org</url>
>> + <properties>
>> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> + </properties>
>> + <dependencies>
>> + <dependency>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>project-4</artifactId>
>> + <version>1.0</version>
>> + </dependency>
>> + <dependency>
>> + <groupId>junit</groupId>
>> + <artifactId>junit</artifactId>
>> + <version>3.8.1</version>
>> + <scope>test</scope>
>> + </dependency>
>> + </dependencies>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
>> new file mode 100644
>> index 0000000..727deaf
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
>> @@ -0,0 +1,13 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +/**
>> + * Hello world!
>> + *
>> + */
>> +public class App
>> +{
>> + public static void main( String[] args )
>> + {
>> + System.out.println( "Hello World!" );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> new file mode 100644
>> index 0000000..422f488
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> @@ -0,0 +1,38 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +import junit.framework.Test;
>> +import junit.framework.TestCase;
>> +import junit.framework.TestSuite;
>> +
>> +/**
>> + * Unit test for simple App.
>> + */
>> +public class AppTest
>> + extends TestCase
>> +{
>> + /**
>> + * Create the test case
>> + *
>> + * @param testName name of the test case
>> + */
>> + public AppTest( String testName )
>> + {
>> + super( testName );
>> + }
>> +
>> + /**
>> + * @return the suite of tests being tested
>> + */
>> + public static Test suite()
>> + {
>> + return new TestSuite( AppTest.class );
>> + }
>> +
>> + /**
>> + * Rigourous Test :-)
>> + */
>> + public void testApp()
>> + {
>> + assertTrue( true );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
>> new file mode 100644
>> index 0000000..2742b65
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
>> @@ -0,0 +1,26 @@
>> +<?xml version="1.0"?>
>> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
>> http://maven.apache.org/POM/4.0.0"
>> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> + <modelVersion>4.0.0</modelVersion>
>> + <parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>parent</artifactId>
>> + <version>1.0</version>
>> + </parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>project-1</artifactId>
>> + <version>1.0</version>
>> + <name>project-1</name>
>> + <url>http://maven.apache.org</url>
>> + <properties>
>> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> + </properties>
>> + <dependencies>
>> + <dependency>
>> + <groupId>junit</groupId>
>> + <artifactId>junit</artifactId>
>> + <version>3.8.1</version>
>> + <scope>test</scope>
>> + </dependency>
>> + </dependencies>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
>> new file mode 100644
>> index 0000000..727deaf
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
>> @@ -0,0 +1,13 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +/**
>> + * Hello world!
>> + *
>> + */
>> +public class App
>> +{
>> + public static void main( String[] args )
>> + {
>> + System.out.println( "Hello World!" );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> new file mode 100644
>> index 0000000..422f488
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> @@ -0,0 +1,38 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +import junit.framework.Test;
>> +import junit.framework.TestCase;
>> +import junit.framework.TestSuite;
>> +
>> +/**
>> + * Unit test for simple App.
>> + */
>> +public class AppTest
>> + extends TestCase
>> +{
>> + /**
>> + * Create the test case
>> + *
>> + * @param testName name of the test case
>> + */
>> + public AppTest( String testName )
>> + {
>> + super( testName );
>> + }
>> +
>> + /**
>> + * @return the suite of tests being tested
>> + */
>> + public static Test suite()
>> + {
>> + return new TestSuite( AppTest.class );
>> + }
>> +
>> + /**
>> + * Rigourous Test :-)
>> + */
>> + public void testApp()
>> + {
>> + assertTrue( true );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
>> new file mode 100644
>> index 0000000..c627a13
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
>> @@ -0,0 +1,26 @@
>> +<?xml version="1.0"?>
>> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
>> http://maven.apache.org/POM/4.0.0"
>> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> + <modelVersion>4.0.0</modelVersion>
>> + <parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>parent</artifactId>
>> + <version>1.0</version>
>> + </parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>project-2</artifactId>
>> + <version>1.0</version>
>> + <name>project-2</name>
>> + <url>http://maven.apache.org</url>
>> + <properties>
>> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> + </properties>
>> + <dependencies>
>> + <dependency>
>> + <groupId>junit</groupId>
>> + <artifactId>junit</artifactId>
>> + <version>3.8.1</version>
>> + <scope>test</scope>
>> + </dependency>
>> + </dependencies>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
>> new file mode 100644
>> index 0000000..727deaf
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
>> @@ -0,0 +1,13 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +/**
>> + * Hello world!
>> + *
>> + */
>> +public class App
>> +{
>> + public static void main( String[] args )
>> + {
>> + System.out.println( "Hello World!" );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> new file mode 100644
>> index 0000000..422f488
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> @@ -0,0 +1,38 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +import junit.framework.Test;
>> +import junit.framework.TestCase;
>> +import junit.framework.TestSuite;
>> +
>> +/**
>> + * Unit test for simple App.
>> + */
>> +public class AppTest
>> + extends TestCase
>> +{
>> + /**
>> + * Create the test case
>> + *
>> + * @param testName name of the test case
>> + */
>> + public AppTest( String testName )
>> + {
>> + super( testName );
>> + }
>> +
>> + /**
>> + * @return the suite of tests being tested
>> + */
>> + public static Test suite()
>> + {
>> + return new TestSuite( AppTest.class );
>> + }
>> +
>> + /**
>> + * Rigourous Test :-)
>> + */
>> + public void testApp()
>> + {
>> + assertTrue( true );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
>> new file mode 100644
>> index 0000000..5d3b117
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
>> @@ -0,0 +1,26 @@
>> +<?xml version="1.0"?>
>> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
>> http://maven.apache.org/POM/4.0.0"
>> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> + <modelVersion>4.0.0</modelVersion>
>> + <parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>parent</artifactId>
>> + <version>1.0</version>
>> + </parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>project-3</artifactId>
>> + <version>1.0</version>
>> + <name>project-3</name>
>> + <url>http://maven.apache.org</url>
>> + <properties>
>> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> + </properties>
>> + <dependencies>
>> + <dependency>
>> + <groupId>junit</groupId>
>> + <artifactId>junit</artifactId>
>> + <version>3.8.1</version>
>> + <scope>test</scope>
>> + </dependency>
>> + </dependencies>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
>> new file mode 100644
>> index 0000000..727deaf
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
>> @@ -0,0 +1,13 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +/**
>> + * Hello world!
>> + *
>> + */
>> +public class App
>> +{
>> + public static void main( String[] args )
>> + {
>> + System.out.println( "Hello World!" );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> new file mode 100644
>> index 0000000..422f488
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> @@ -0,0 +1,38 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +import junit.framework.Test;
>> +import junit.framework.TestCase;
>> +import junit.framework.TestSuite;
>> +
>> +/**
>> + * Unit test for simple App.
>> + */
>> +public class AppTest
>> + extends TestCase
>> +{
>> + /**
>> + * Create the test case
>> + *
>> + * @param testName name of the test case
>> + */
>> + public AppTest( String testName )
>> + {
>> + super( testName );
>> + }
>> +
>> + /**
>> + * @return the suite of tests being tested
>> + */
>> + public static Test suite()
>> + {
>> + return new TestSuite( AppTest.class );
>> + }
>> +
>> + /**
>> + * Rigourous Test :-)
>> + */
>> + public void testApp()
>> + {
>> + assertTrue( true );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
>> new file mode 100644
>> index 0000000..0bd4660
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
>> @@ -0,0 +1,26 @@
>> +<?xml version="1.0"?>
>> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
>> http://maven.apache.org/POM/4.0.0"
>> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> + <modelVersion>4.0.0</modelVersion>
>> + <parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>parent</artifactId>
>> + <version>1.0</version>
>> + </parent>
>> + <groupId>org.apache.maven.its.mng5557</groupId>
>> + <artifactId>project-4</artifactId>
>> + <version>1.0</version>
>> + <name>project-4</name>
>> + <url>http://maven.apache.org</url>
>> + <properties>
>> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> + </properties>
>> + <dependencies>
>> + <dependency>
>> + <groupId>junit</groupId>
>> + <artifactId>junit</artifactId>
>> + <version>3.8.1</version>
>> + <scope>test</scope>
>> + </dependency>
>> + </dependencies>
>> +</project>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
>> new file mode 100644
>> index 0000000..727deaf
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
>> @@ -0,0 +1,13 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +/**
>> + * Hello world!
>> + *
>> + */
>> +public class App
>> +{
>> + public static void main( String[] args )
>> + {
>> + System.out.println( "Hello World!" );
>> + }
>> +}
>>
>>
>> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> ----------------------------------------------------------------------
>> diff --git
>> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> new file mode 100644
>> index 0000000..422f488
>> --- /dev/null
>> +++
>> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
>> @@ -0,0 +1,38 @@
>> +package org.apache.maven.its.mng5557;
>> +
>> +import junit.framework.Test;
>> +import junit.framework.TestCase;
>> +import junit.framework.TestSuite;
>> +
>> +/**
>> + * Unit test for simple App.
>> + */
>> +public class AppTest
>> + extends TestCase
>> +{
>> + /**
>> + * Create the test case
>> + *
>> + * @param testName name of the test case
>> + */
>> + public AppTest( String testName )
>> + {
>> + super( testName );
>> + }
>> +
>> + /**
>> + * @return the suite of tests being tested
>> + */
>> + public static Test suite()
>> + {
>> + return new TestSuite( AppTest.class );
>> + }
>> +
>> + /**
>> + * Rigourous Test :-)
>> + */
>> + public void testApp()
>> + {
>> + assertTrue( true );
>> + }
>> +}
>>
>>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
Re: git commit: MNG-5557: IT to test the constraining of the reactor
with --projects - rename the mojo execution scope directory to have a small description
Posted by Stephen Connolly <st...@gmail.com>.
Is this the correct commit message?
On 6 January 2014 16:57, <jv...@apache.org> wrote:
> Updated Branches:
> refs/heads/master fa0f5050b -> c01884d6d
>
>
> MNG-5557: IT to test the constraining of the reactor with --projects
> - rename the mojo execution scope directory to have a small description
>
>
> 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/c01884d6
> Tree:
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/c01884d6
> Diff:
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/c01884d6
>
> Branch: refs/heads/master
> Commit: c01884d6d4dbaca328edf6d8e238e6959449f25b
> Parents: fa0f505
> Author: Jason van Zyl <ja...@tesla.io>
> Authored: Mon Jan 6 11:55:57 2014 -0500
> Committer: Jason van Zyl <ja...@tesla.io>
> Committed: Mon Jan 6 11:55:57 2014 -0500
>
> ----------------------------------------------------------------------
> .../MavenITmng5530MojoExecutionScopeTest.java | 2 +-
> ...MavenITmng5557ProperlyRestrictedReactor.java | 65 ++++++++++++++
> .../mng-5530-mojo-execution-scope/basic/pom.xml | 51 +++++++++++
> .../plugin/pom.xml | 95 ++++++++++++++++++++
> .../TestExecutionScopeMojo.java | 40 +++++++++
> .../TestExecutionScopedComponent.java | 90 +++++++++++++++++++
> .../src/test/resources/mng-5530/basic/pom.xml | 51 -----------
> .../src/test/resources/mng-5530/plugin/pom.xml | 95 --------------------
> .../TestExecutionScopeMojo.java | 40 ---------
> .../TestExecutionScopedComponent.java | 90 -------------------
> .../pom.xml | 15 ++++
> .../project-0/pom.xml | 31 +++++++
> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> .../project-1/pom.xml | 26 ++++++
> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> .../project-2/pom.xml | 26 ++++++
> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> .../project-3/pom.xml | 26 ++++++
> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> .../project-4/pom.xml | 26 ++++++
> .../java/org/apache/maven/its/mng5557/App.java | 13 +++
> .../org/apache/maven/its/mng5557/AppTest.java | 38 ++++++++
> 26 files changed, 747 insertions(+), 277 deletions(-)
> ----------------------------------------------------------------------
>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> index 6cac091..f9b45be 100644
> ---
> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> +++
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5530MojoExecutionScopeTest.java
> @@ -34,7 +34,7 @@ public class MavenITmng5530MojoExecutionScopeTest
> public void test_copyfiles()
> throws Exception
> {
> - File testDir = ResourceExtractor.simpleExtractResources(
> getClass(), "/mng-5530");
> + File testDir = ResourceExtractor.simpleExtractResources(
> getClass(), "/mng-5530-mojo-execution-scope");
> File pluginDir = new File( testDir, "plugin" );
> File projectDir = new File( testDir, "basic" );
>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> new file mode 100644
> index 0000000..2d2ce05
> --- /dev/null
> +++
> b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5557ProperlyRestrictedReactor.java
> @@ -0,0 +1,65 @@
> +package org.apache.maven.it;
> +
> +/*
> + * 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.
> + */
> +
> +import java.io.File;
> +
> +import org.apache.maven.it.util.ResourceExtractor;
> +
> +/**
> + * Test to make sure that the reactor is properly constrained when
> --projects is used. Previous to 3.1.2 all of the
> + * projects found in the <modules/> section of the POM were passed into
> the reactor. This test is a 5 project
> + * multi-module project where only project-0, and project-1 are specified
> to be used. The project-0 has a dependency on
> + * project-4 and in this constrained mode the dependency resolution
> should fail because project-4 is no longer placed in
> + * the reactor.
> + *
> + * @author jvanzyl
> + */
> +public class MavenITmng5557ProperlyRestrictedReactor
> + extends AbstractMavenIntegrationTestCase
> +{
> + public MavenITmng5557ProperlyRestrictedReactor()
> + {
> + super( "[3.1.2,)" );
> + }
> +
> + public void testRunningRestrictedReactor()
> + throws Exception
> + {
> + File testDir = ResourceExtractor.simpleExtractResources(
> getClass(), "/mng-5557-properly-restricted-reactor" );
> + Verifier verifier = newVerifier( testDir.getAbsolutePath() );
> + //
> + // Remove everything related to this project from the local
> repository as we want this to be resolution purely
> + // from the reactor.
> + //
> + verifier.deleteArtifacts( "org.apache.maven.its.mng5557" );
> + verifier.addCliOption( "--projects project-0,project-1" );
> + try
> + {
> + verifier.executeGoal( "package" );
> + }
> + catch ( VerificationException e )
> + {
> + // the execution should fail due to a resolution error.
> + }
> + verifier.resetStreams();
> + verifier.verifyTextInLog( "Could not resolve dependencies for
> project org.apache.maven.its.mng5557:project-0:jar:1.0: Could not find
> artifact org.apache.maven.its.mng5557:project-4:jar:1.0" );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> new file mode 100644
> index 0000000..b17233d
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/basic/pom.xml
> @@ -0,0 +1,51 @@
> +<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> + <modelVersion>4.0.0</modelVersion>
> +
> + <groupId>io.tesla.its.mojoexecutionscope</groupId>
> + <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
> + <version>0.0.1-SNAPSHOT</version>
> + <packaging>jar</packaging>
> +
> + <build>
> + <plugins>
> + <plugin>
> + <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> + <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> + <version>0.1</version>
> + <extensions>true</extensions>
> + <executions>
> + <execution>
> + <id>test-execution-scope</id>
> + <goals>
> + <goal>test-execution-scope</goal>
> + </goals>
> + <phase>process-resources</phase>
> + </execution>
> + </executions>
> + </plugin>
> + </plugins>
> +
> + </build>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> new file mode 100644
> index 0000000..67bd766
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/pom.xml
> @@ -0,0 +1,95 @@
> +<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> + <modelVersion>4.0.0</modelVersion>
> +
> + <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> + <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> + <version>0.1</version>
> + <packaging>maven-plugin</packaging>
> +
> + <properties>
> + <maven-version>[3.2.0-SNAPSHOT,)</maven-version>
> + </properties>
> +
> + <dependencies>
> + <dependency>
> + <groupId>org.apache.maven</groupId>
> + <artifactId>maven-plugin-api</artifactId>
> + <version>${maven-version}</version>
> + <scope>provided</scope>
> + </dependency>
> + <dependency>
> + <groupId>org.apache.maven</groupId>
> + <artifactId>maven-model</artifactId>
> + <version>${maven-version}</version>
> + <scope>provided</scope>
> + </dependency>
> + <dependency>
> + <groupId>org.apache.maven</groupId>
> + <artifactId>maven-core</artifactId>
> + <version>${maven-version}</version>
> + <scope>provided</scope>
> + </dependency>
> + </dependencies>
> +
> + <build>
> + <plugins>
> + <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-compiler-plugin</artifactId>
> + <version>2.0.2</version>
> + <configuration>
> + <source>1.5</source>
> + <target>1.5</target>
> + </configuration>
> + </plugin>
> + <plugin>
> + <groupId>org.sonatype.plugins</groupId>
> + <artifactId>sisu-maven-plugin</artifactId>
> + <version>1.1</version>
> + <executions>
> + <execution>
> + <goals>
> + <goal>main-index</goal>
> + <goal>test-index</goal>
> + </goals>
> + </execution>
> + </executions>
> + </plugin>
> + <plugin>
> + <groupId>org.codehaus.plexus</groupId>
> + <artifactId>plexus-component-metadata</artifactId>
> + <version>1.5.5</version>
> + <executions>
> + <execution>
> + <goals>
> + <goal>generate-metadata</goal>
> + <goal>generate-test-metadata</goal>
> + </goals>
> + </execution>
> + </executions>
> + </plugin>
> + </plugins>
> + </build>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> new file mode 100644
> index 0000000..24d5c8a
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> @@ -0,0 +1,40 @@
> +package org.apache.maven.its.mng5530.mojoexecutionscope;
> +
> +/*
> + * 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.
> + */
> +
> +import org.apache.maven.plugin.AbstractMojo;
> +import org.apache.maven.plugin.MojoExecutionException;
> +import org.apache.maven.plugin.MojoFailureException;
> +
> +/**
> + * @goal test-execution-scope
> + */
> +public class TestExecutionScopeMojo
> + extends AbstractMojo
> +{
> + /** @component */
> + private TestExecutionScopedComponent executionScopedComponent;
> +
> + public void execute()
> + throws MojoExecutionException, MojoFailureException
> + {
> + executionScopedComponent.recordExecute();
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> new file mode 100644
> index 0000000..723d36c
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5530-mojo-execution-scope/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> @@ -0,0 +1,90 @@
> +package org.apache.maven.its.mng5530.mojoexecutionscope;
> +
> +/*
> + * 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.
> + */
> +
> +import java.io.File;
> +import java.io.FileOutputStream;
> +import java.io.IOException;
> +
> +import javax.inject.Inject;
> +import javax.inject.Named;
> +
> +import org.apache.maven.execution.MavenSession;
> +import org.apache.maven.execution.MojoExecutionEvent;
> +import org.apache.maven.execution.scope.MojoExecutionScoped;
> +import org.apache.maven.execution.scope.WeakMojoExecutionListener;
> +import org.apache.maven.plugin.MojoExecution;
> +import org.apache.maven.plugin.MojoExecutionException;
> +import org.apache.maven.project.MavenProject;
> +
> +@Named
> +@MojoExecutionScoped
> +public class TestExecutionScopedComponent
> + implements WeakMojoExecutionListener
> +{
> + private final File basedir;
> +
> + private MavenSession session;
> +
> + private MojoExecution execution;
> +
> + @Inject
> + public TestExecutionScopedComponent( MavenSession session,
> MavenProject project, MojoExecution execution )
> + {
> + this.session = session;
> + this.execution = execution;
> + this.basedir = new File( project.getBuild().getDirectory() );
> + }
> +
> + public void recordExecute()
> + {
> + touch( new File( basedir, "execution-executed.txt" ) );
> + }
> +
> + private void touch( File file )
> + {
> + file.getParentFile().mkdirs();
> + try
> + {
> + new FileOutputStream( file ).close();
> + }
> + catch ( IOException e )
> + {
> + // ignore
> + }
> + }
> +
> + public void afterExecutionFailure( MojoExecutionEvent event )
> + {
> + touch( new File( basedir, "execution-failure.txt" ) );
> + }
> +
> + public void afterMojoExecutionSuccess( MojoExecutionEvent event )
> + throws MojoExecutionException
> + {
> + touch( new File( basedir, "execution-success.txt" ) );
> + }
> +
> + public void beforeMojoExecution( MojoExecutionEvent event )
> + throws MojoExecutionException
> + {
> + touch( new File( basedir, "execution-before.txt" ) );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> ----------------------------------------------------------------------
> diff --git a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> b/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> deleted file mode 100644
> index b17233d..0000000
> --- a/core-it-suite/src/test/resources/mng-5530/basic/pom.xml
> +++ /dev/null
> @@ -1,51 +0,0 @@
> -<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> - <modelVersion>4.0.0</modelVersion>
> -
> - <groupId>io.tesla.its.mojoexecutionscope</groupId>
> - <artifactId>mng5530-mojo-execution-scope-basic</artifactId>
> - <version>0.0.1-SNAPSHOT</version>
> - <packaging>jar</packaging>
> -
> - <build>
> - <plugins>
> - <plugin>
> - <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> - <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> - <version>0.1</version>
> - <extensions>true</extensions>
> - <executions>
> - <execution>
> - <id>test-execution-scope</id>
> - <goals>
> - <goal>test-execution-scope</goal>
> - </goals>
> - <phase>process-resources</phase>
> - </execution>
> - </executions>
> - </plugin>
> - </plugins>
> -
> - </build>
> -</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> ----------------------------------------------------------------------
> diff --git a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> b/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> deleted file mode 100644
> index a98e9ca..0000000
> --- a/core-it-suite/src/test/resources/mng-5530/plugin/pom.xml
> +++ /dev/null
> @@ -1,95 +0,0 @@
> -<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> - <modelVersion>4.0.0</modelVersion>
> -
> - <groupId>org.apache.maven.its.mng5530.mojoexecutionscope</groupId>
> - <artifactId>mng5530-mojo-execution-scope-plugin</artifactId>
> - <version>0.1</version>
> - <packaging>maven-plugin</packaging>
> -
> - <properties>
> - <maven-version>[3.1.2-SNAPSHOT,)</maven-version>
> - </properties>
> -
> - <dependencies>
> - <dependency>
> - <groupId>org.apache.maven</groupId>
> - <artifactId>maven-plugin-api</artifactId>
> - <version>${maven-version}</version>
> - <scope>provided</scope>
> - </dependency>
> - <dependency>
> - <groupId>org.apache.maven</groupId>
> - <artifactId>maven-model</artifactId>
> - <version>${maven-version}</version>
> - <scope>provided</scope>
> - </dependency>
> - <dependency>
> - <groupId>org.apache.maven</groupId>
> - <artifactId>maven-core</artifactId>
> - <version>${maven-version}</version>
> - <scope>provided</scope>
> - </dependency>
> - </dependencies>
> -
> - <build>
> - <plugins>
> - <plugin>
> - <groupId>org.apache.maven.plugins</groupId>
> - <artifactId>maven-compiler-plugin</artifactId>
> - <version>2.0.2</version>
> - <configuration>
> - <source>1.5</source>
> - <target>1.5</target>
> - </configuration>
> - </plugin>
> - <plugin>
> - <groupId>org.sonatype.plugins</groupId>
> - <artifactId>sisu-maven-plugin</artifactId>
> - <version>1.1</version>
> - <executions>
> - <execution>
> - <goals>
> - <goal>main-index</goal>
> - <goal>test-index</goal>
> - </goals>
> - </execution>
> - </executions>
> - </plugin>
> - <plugin>
> - <groupId>org.codehaus.plexus</groupId>
> - <artifactId>plexus-component-metadata</artifactId>
> - <version>1.5.5</version>
> - <executions>
> - <execution>
> - <goals>
> - <goal>generate-metadata</goal>
> - <goal>generate-test-metadata</goal>
> - </goals>
> - </execution>
> - </executions>
> - </plugin>
> - </plugins>
> - </build>
> -</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> deleted file mode 100644
> index 24d5c8a..0000000
> ---
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
> +++ /dev/null
> @@ -1,40 +0,0 @@
> -package org.apache.maven.its.mng5530.mojoexecutionscope;
> -
> -/*
> - * 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.
> - */
> -
> -import org.apache.maven.plugin.AbstractMojo;
> -import org.apache.maven.plugin.MojoExecutionException;
> -import org.apache.maven.plugin.MojoFailureException;
> -
> -/**
> - * @goal test-execution-scope
> - */
> -public class TestExecutionScopeMojo
> - extends AbstractMojo
> -{
> - /** @component */
> - private TestExecutionScopedComponent executionScopedComponent;
> -
> - public void execute()
> - throws MojoExecutionException, MojoFailureException
> - {
> - executionScopedComponent.recordExecute();
> - }
> -}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> b/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> deleted file mode 100644
> index 723d36c..0000000
> ---
> a/core-it-suite/src/test/resources/mng-5530/plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
> +++ /dev/null
> @@ -1,90 +0,0 @@
> -package org.apache.maven.its.mng5530.mojoexecutionscope;
> -
> -/*
> - * 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.
> - */
> -
> -import java.io.File;
> -import java.io.FileOutputStream;
> -import java.io.IOException;
> -
> -import javax.inject.Inject;
> -import javax.inject.Named;
> -
> -import org.apache.maven.execution.MavenSession;
> -import org.apache.maven.execution.MojoExecutionEvent;
> -import org.apache.maven.execution.scope.MojoExecutionScoped;
> -import org.apache.maven.execution.scope.WeakMojoExecutionListener;
> -import org.apache.maven.plugin.MojoExecution;
> -import org.apache.maven.plugin.MojoExecutionException;
> -import org.apache.maven.project.MavenProject;
> -
> -@Named
> -@MojoExecutionScoped
> -public class TestExecutionScopedComponent
> - implements WeakMojoExecutionListener
> -{
> - private final File basedir;
> -
> - private MavenSession session;
> -
> - private MojoExecution execution;
> -
> - @Inject
> - public TestExecutionScopedComponent( MavenSession session,
> MavenProject project, MojoExecution execution )
> - {
> - this.session = session;
> - this.execution = execution;
> - this.basedir = new File( project.getBuild().getDirectory() );
> - }
> -
> - public void recordExecute()
> - {
> - touch( new File( basedir, "execution-executed.txt" ) );
> - }
> -
> - private void touch( File file )
> - {
> - file.getParentFile().mkdirs();
> - try
> - {
> - new FileOutputStream( file ).close();
> - }
> - catch ( IOException e )
> - {
> - // ignore
> - }
> - }
> -
> - public void afterExecutionFailure( MojoExecutionEvent event )
> - {
> - touch( new File( basedir, "execution-failure.txt" ) );
> - }
> -
> - public void afterMojoExecutionSuccess( MojoExecutionEvent event )
> - throws MojoExecutionException
> - {
> - touch( new File( basedir, "execution-success.txt" ) );
> - }
> -
> - public void beforeMojoExecution( MojoExecutionEvent event )
> - throws MojoExecutionException
> - {
> - touch( new File( basedir, "execution-before.txt" ) );
> - }
> -}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> new file mode 100644
> index 0000000..54aab39
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/pom.xml
> @@ -0,0 +1,15 @@
> +<?xml version="1.0" encoding="UTF-8"?>
> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> + <modelVersion>4.0.0</modelVersion>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>parent</artifactId>
> + <version>1.0</version>
> + <packaging>pom</packaging>
> + <modules>
> + <module>project-0</module>
> + <module>project-1</module>
> + <module>project-2</module>
> + <module>project-3</module>
> + <module>project-4</module>
> + </modules>
> +</project>
> \ No newline at end of file
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> new file mode 100644
> index 0000000..46d1a1a
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/pom.xml
> @@ -0,0 +1,31 @@
> +<?xml version="1.0"?>
> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> http://maven.apache.org/POM/4.0.0"
> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> + <modelVersion>4.0.0</modelVersion>
> + <parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>parent</artifactId>
> + <version>1.0</version>
> + </parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>project-0</artifactId>
> + <version>1.0</version>
> + <name>project-0</name>
> + <url>http://maven.apache.org</url>
> + <properties>
> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> + </properties>
> + <dependencies>
> + <dependency>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>project-4</artifactId>
> + <version>1.0</version>
> + </dependency>
> + <dependency>
> + <groupId>junit</groupId>
> + <artifactId>junit</artifactId>
> + <version>3.8.1</version>
> + <scope>test</scope>
> + </dependency>
> + </dependencies>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> new file mode 100644
> index 0000000..727deaf
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/main/java/org/apache/maven/its/mng5557/App.java
> @@ -0,0 +1,13 @@
> +package org.apache.maven.its.mng5557;
> +
> +/**
> + * Hello world!
> + *
> + */
> +public class App
> +{
> + public static void main( String[] args )
> + {
> + System.out.println( "Hello World!" );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> new file mode 100644
> index 0000000..422f488
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-0/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> @@ -0,0 +1,38 @@
> +package org.apache.maven.its.mng5557;
> +
> +import junit.framework.Test;
> +import junit.framework.TestCase;
> +import junit.framework.TestSuite;
> +
> +/**
> + * Unit test for simple App.
> + */
> +public class AppTest
> + extends TestCase
> +{
> + /**
> + * Create the test case
> + *
> + * @param testName name of the test case
> + */
> + public AppTest( String testName )
> + {
> + super( testName );
> + }
> +
> + /**
> + * @return the suite of tests being tested
> + */
> + public static Test suite()
> + {
> + return new TestSuite( AppTest.class );
> + }
> +
> + /**
> + * Rigourous Test :-)
> + */
> + public void testApp()
> + {
> + assertTrue( true );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> new file mode 100644
> index 0000000..2742b65
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/pom.xml
> @@ -0,0 +1,26 @@
> +<?xml version="1.0"?>
> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> http://maven.apache.org/POM/4.0.0"
> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> + <modelVersion>4.0.0</modelVersion>
> + <parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>parent</artifactId>
> + <version>1.0</version>
> + </parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>project-1</artifactId>
> + <version>1.0</version>
> + <name>project-1</name>
> + <url>http://maven.apache.org</url>
> + <properties>
> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> + </properties>
> + <dependencies>
> + <dependency>
> + <groupId>junit</groupId>
> + <artifactId>junit</artifactId>
> + <version>3.8.1</version>
> + <scope>test</scope>
> + </dependency>
> + </dependencies>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> new file mode 100644
> index 0000000..727deaf
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/main/java/org/apache/maven/its/mng5557/App.java
> @@ -0,0 +1,13 @@
> +package org.apache.maven.its.mng5557;
> +
> +/**
> + * Hello world!
> + *
> + */
> +public class App
> +{
> + public static void main( String[] args )
> + {
> + System.out.println( "Hello World!" );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> new file mode 100644
> index 0000000..422f488
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-1/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> @@ -0,0 +1,38 @@
> +package org.apache.maven.its.mng5557;
> +
> +import junit.framework.Test;
> +import junit.framework.TestCase;
> +import junit.framework.TestSuite;
> +
> +/**
> + * Unit test for simple App.
> + */
> +public class AppTest
> + extends TestCase
> +{
> + /**
> + * Create the test case
> + *
> + * @param testName name of the test case
> + */
> + public AppTest( String testName )
> + {
> + super( testName );
> + }
> +
> + /**
> + * @return the suite of tests being tested
> + */
> + public static Test suite()
> + {
> + return new TestSuite( AppTest.class );
> + }
> +
> + /**
> + * Rigourous Test :-)
> + */
> + public void testApp()
> + {
> + assertTrue( true );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> new file mode 100644
> index 0000000..c627a13
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/pom.xml
> @@ -0,0 +1,26 @@
> +<?xml version="1.0"?>
> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> http://maven.apache.org/POM/4.0.0"
> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> + <modelVersion>4.0.0</modelVersion>
> + <parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>parent</artifactId>
> + <version>1.0</version>
> + </parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>project-2</artifactId>
> + <version>1.0</version>
> + <name>project-2</name>
> + <url>http://maven.apache.org</url>
> + <properties>
> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> + </properties>
> + <dependencies>
> + <dependency>
> + <groupId>junit</groupId>
> + <artifactId>junit</artifactId>
> + <version>3.8.1</version>
> + <scope>test</scope>
> + </dependency>
> + </dependencies>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> new file mode 100644
> index 0000000..727deaf
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/main/java/org/apache/maven/its/mng5557/App.java
> @@ -0,0 +1,13 @@
> +package org.apache.maven.its.mng5557;
> +
> +/**
> + * Hello world!
> + *
> + */
> +public class App
> +{
> + public static void main( String[] args )
> + {
> + System.out.println( "Hello World!" );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> new file mode 100644
> index 0000000..422f488
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-2/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> @@ -0,0 +1,38 @@
> +package org.apache.maven.its.mng5557;
> +
> +import junit.framework.Test;
> +import junit.framework.TestCase;
> +import junit.framework.TestSuite;
> +
> +/**
> + * Unit test for simple App.
> + */
> +public class AppTest
> + extends TestCase
> +{
> + /**
> + * Create the test case
> + *
> + * @param testName name of the test case
> + */
> + public AppTest( String testName )
> + {
> + super( testName );
> + }
> +
> + /**
> + * @return the suite of tests being tested
> + */
> + public static Test suite()
> + {
> + return new TestSuite( AppTest.class );
> + }
> +
> + /**
> + * Rigourous Test :-)
> + */
> + public void testApp()
> + {
> + assertTrue( true );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> new file mode 100644
> index 0000000..5d3b117
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/pom.xml
> @@ -0,0 +1,26 @@
> +<?xml version="1.0"?>
> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> http://maven.apache.org/POM/4.0.0"
> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> + <modelVersion>4.0.0</modelVersion>
> + <parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>parent</artifactId>
> + <version>1.0</version>
> + </parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>project-3</artifactId>
> + <version>1.0</version>
> + <name>project-3</name>
> + <url>http://maven.apache.org</url>
> + <properties>
> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> + </properties>
> + <dependencies>
> + <dependency>
> + <groupId>junit</groupId>
> + <artifactId>junit</artifactId>
> + <version>3.8.1</version>
> + <scope>test</scope>
> + </dependency>
> + </dependencies>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> new file mode 100644
> index 0000000..727deaf
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/main/java/org/apache/maven/its/mng5557/App.java
> @@ -0,0 +1,13 @@
> +package org.apache.maven.its.mng5557;
> +
> +/**
> + * Hello world!
> + *
> + */
> +public class App
> +{
> + public static void main( String[] args )
> + {
> + System.out.println( "Hello World!" );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> new file mode 100644
> index 0000000..422f488
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-3/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> @@ -0,0 +1,38 @@
> +package org.apache.maven.its.mng5557;
> +
> +import junit.framework.Test;
> +import junit.framework.TestCase;
> +import junit.framework.TestSuite;
> +
> +/**
> + * Unit test for simple App.
> + */
> +public class AppTest
> + extends TestCase
> +{
> + /**
> + * Create the test case
> + *
> + * @param testName name of the test case
> + */
> + public AppTest( String testName )
> + {
> + super( testName );
> + }
> +
> + /**
> + * @return the suite of tests being tested
> + */
> + public static Test suite()
> + {
> + return new TestSuite( AppTest.class );
> + }
> +
> + /**
> + * Rigourous Test :-)
> + */
> + public void testApp()
> + {
> + assertTrue( true );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> new file mode 100644
> index 0000000..0bd4660
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/pom.xml
> @@ -0,0 +1,26 @@
> +<?xml version="1.0"?>
> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="
> http://maven.apache.org/POM/4.0.0"
> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> + <modelVersion>4.0.0</modelVersion>
> + <parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>parent</artifactId>
> + <version>1.0</version>
> + </parent>
> + <groupId>org.apache.maven.its.mng5557</groupId>
> + <artifactId>project-4</artifactId>
> + <version>1.0</version>
> + <name>project-4</name>
> + <url>http://maven.apache.org</url>
> + <properties>
> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> + </properties>
> + <dependencies>
> + <dependency>
> + <groupId>junit</groupId>
> + <artifactId>junit</artifactId>
> + <version>3.8.1</version>
> + <scope>test</scope>
> + </dependency>
> + </dependencies>
> +</project>
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> new file mode 100644
> index 0000000..727deaf
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/main/java/org/apache/maven/its/mng5557/App.java
> @@ -0,0 +1,13 @@
> +package org.apache.maven.its.mng5557;
> +
> +/**
> + * Hello world!
> + *
> + */
> +public class App
> +{
> + public static void main( String[] args )
> + {
> + System.out.println( "Hello World!" );
> + }
> +}
>
>
> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/c01884d6/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> ----------------------------------------------------------------------
> diff --git
> a/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> new file mode 100644
> index 0000000..422f488
> --- /dev/null
> +++
> b/core-it-suite/src/test/resources/mng-5557-properly-restricted-reactor/project-4/src/test/java/org/apache/maven/its/mng5557/AppTest.java
> @@ -0,0 +1,38 @@
> +package org.apache.maven.its.mng5557;
> +
> +import junit.framework.Test;
> +import junit.framework.TestCase;
> +import junit.framework.TestSuite;
> +
> +/**
> + * Unit test for simple App.
> + */
> +public class AppTest
> + extends TestCase
> +{
> + /**
> + * Create the test case
> + *
> + * @param testName name of the test case
> + */
> + public AppTest( String testName )
> + {
> + super( testName );
> + }
> +
> + /**
> + * @return the suite of tests being tested
> + */
> + public static Test suite()
> + {
> + return new TestSuite( AppTest.class );
> + }
> +
> + /**
> + * Rigourous Test :-)
> + */
> + public void testApp()
> + {
> + assertTrue( true );
> + }
> +}
>
>