You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by st...@apache.org on 2014/01/06 13:13:43 UTC

git commit: this test probably needs to be better designed, but in this case a version range is required for now in order to ensure that there is the dependency available

Updated Branches:
  refs/heads/master 0fae8c439 -> d4f4d4009


this test probably needs to be better designed, but in this case a version range is required for now in order to ensure that there is the dependency available


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/d4f4d400
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/d4f4d400
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/d4f4d400

Branch: refs/heads/master
Commit: d4f4d4009d23a77254c20d4c2c8a2b8eccc91e47
Parents: 0fae8c4
Author: Stephen Connolly <st...@gmail.com>
Authored: Mon Jan 6 12:13:38 2014 +0000
Committer: Stephen Connolly <st...@gmail.com>
Committed: Mon Jan 6 12:13:38 2014 +0000

----------------------------------------------------------------------
 .../MavenITmng5530MojoExecutionScopeTest.java   |  7 +-
 .../src/test/resources/mng-5530/basic/pom.xml   | 51 +++++++++++
 .../src/test/resources/mng-5530/plugin/pom.xml  | 95 ++++++++++++++++++++
 .../TestExecutionScopeMojo.java                 | 40 +++++++++
 .../TestExecutionScopedComponent.java           | 90 +++++++++++++++++++
 .../mng5530-mojo-execution-scope-basic/pom.xml  | 51 -----------
 .../mng5530-mojo-execution-scope-plugin/pom.xml | 95 --------------------
 .../TestExecutionScopeMojo.java                 | 40 ---------
 .../TestExecutionScopedComponent.java           | 90 -------------------
 9 files changed, 280 insertions(+), 279 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/d4f4d400/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 22ab7fc..c169ddd 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,14 +34,15 @@ public class MavenITmng5530MojoExecutionScopeTest
     public void test_copyfiles()
         throws Exception
     {
-        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng5530-mojo-execution-scope" );
-        File pluginDir = new File( testDir, "mng5530-mojo-execution-scope-plugin" );
-        File projectDir = new File( testDir, "mng5530-mojo-execution-scope-basic" );
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5530");
+        File pluginDir = new File( testDir, "plugin" );
+        File projectDir = new File( testDir, "basic" );
 
         Verifier verifier;
 
         // install the test plugin
         verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
+        verifier.setSystemProperty("mavenVersion", getMavenVersion());
         verifier.executeGoal( "install" );
         verifier.resetStreams();
         verifier.verifyErrorFreeLog();

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/d4f4d400/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
new file mode 100644
index 0000000..b17233d
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530/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/d4f4d400/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
new file mode 100644
index 0000000..a98e9ca
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530/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.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/d4f4d400/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
new file mode 100644
index 0000000..24d5c8a
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530/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/d4f4d400/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
new file mode 100644
index 0000000..723d36c
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5530/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/d4f4d400/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-basic/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-basic/pom.xml b/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-basic/pom.xml
deleted file mode 100644
index b17233d..0000000
--- a/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-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/d4f4d400/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/pom.xml b/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/pom.xml
deleted file mode 100644
index 61c0643..0000000
--- a/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-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/d4f4d400/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopeMojo.java b/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-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/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-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/d4f4d400/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-plugin/src/main/java/org/apache/maven/its/mng5530/mojoexecutionscope/TestExecutionScopedComponent.java b/core-it-suite/src/test/resources/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-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/mng5530-mojo-execution-scope/mng5530-mojo-execution-scope-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" ) );
-    }
-}