You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2017/08/04 12:24:05 UTC
[2/2] maven-integration-testing git commit: [MNG-6127] Fix plugin
execution configuration interference
[MNG-6127] Fix plugin execution configuration interference
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/82b043f8
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/82b043f8
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/82b043f8
Branch: refs/heads/MNG-6127
Commit: 82b043f8bd2015fc4ccac35df805ec2356100428
Parents: 534b562
Author: rfscholte <rf...@apache.org>
Authored: Fri Aug 4 14:23:55 2017 +0200
Committer: rfscholte <rf...@apache.org>
Committed: Fri Aug 4 14:23:55 2017 +0200
----------------------------------------------------------------------
...nExecutionConfigurationInterferenceTest.java | 4 +-
.../plugin/pom.xml | 57 +++++++++++++
.../maven/its/mng6127/plugin/TestMojo.java | 80 ++++++++++++++++++
.../resources/META-INF/plexus/components.xml | 44 ++++++++++
.../project/mod-a/pom.xml | 51 ++++++++++++
.../project/mod-b/pom.xml | 51 ++++++++++++
.../project/mod-c/pom.xml | 48 +++++++++++
.../project/pom.xml | 37 +++++++++
.../src/test/resources/mng-6127/plugin/pom.xml | 55 -------------
.../maven/its/mng6127/plugin/TestMojo.java | 87 --------------------
.../resources/META-INF/plexus/components.xml | 44 ----------
.../resources/mng-6127/project/mod-a/pom.xml | 51 ------------
.../resources/mng-6127/project/mod-b/pom.xml | 51 ------------
.../resources/mng-6127/project/mod-c/pom.xml | 48 -----------
.../src/test/resources/mng-6127/project/pom.xml | 37 ---------
15 files changed, 371 insertions(+), 374 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6127PluginExecutionConfigurationInterferenceTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6127PluginExecutionConfigurationInterferenceTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6127PluginExecutionConfigurationInterferenceTest.java
index 9835db0..07ee610 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6127PluginExecutionConfigurationInterferenceTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6127PluginExecutionConfigurationInterferenceTest.java
@@ -36,7 +36,9 @@ public class MavenITmng6127PluginExecutionConfigurationInterferenceTest
public void testCustomMojoExecutionConfigurator()
throws Exception
{
- File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-6127" );
+ File testDir =
+ ResourceExtractor.simpleExtractResources( getClass(),
+ "/mng-6127-plugin-execution-configuration-interference" );
File pluginDir = new File( testDir, "plugin" );
File projectDir = new File( testDir, "project" );
File modAprojectDir = new File( projectDir, "mod-a" );
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/pom.xml b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/pom.xml
new file mode 100644
index 0000000..cc214d7
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/pom.xml
@@ -0,0 +1,57 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-plugin</artifactId>
+ <version>0.1</version>
+ <packaging>maven-plugin</packaging>
+
+ <properties>
+ <maven-version>3.3.1</maven-version>
+ <maven.compiler.source>1.7</maven.compiler.source>
+ <maven.compiler.target>1.7</maven.compiler.target>
+ </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>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java
new file mode 100644
index 0000000..8dddab6
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java
@@ -0,0 +1,80 @@
+package org.apache.maven.its.mng6127.plugin;
+
+/*
+ * 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 java.io.OutputStreamWriter;
+import java.io.Writer;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+
+/**
+ * Test mojo.
+ *
+ * @goal test
+ */
+public class TestMojo
+ extends AbstractMojo
+{
+ /**
+ * The Maven project.
+ *
+ * @parameter expression="${project}"
+ */
+ private MavenProject project;
+
+ /**
+ * The name to write.
+ *
+ * @parameter
+ */
+ private String name;
+
+ /**
+ * The second name to write.
+ *
+ * @parameter
+ */
+ private String secondName;
+
+ public void execute()
+ throws MojoExecutionException
+ {
+ File file = new File( project.getBasedir(), "configuration.txt" );
+ file.getParentFile().mkdirs();
+
+ try ( Writer w = new OutputStreamWriter( new FileOutputStream( file, true ), "UTF-8" ); )
+ {
+ if ( name != null )
+ {
+ w.write( name );
+ }
+ w.write( secondName );
+ }
+ catch ( IOException e )
+ {
+ throw new MojoExecutionException( e.getMessage(), e );
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/resources/META-INF/plexus/components.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/resources/META-INF/plexus/components.xml b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/resources/META-INF/plexus/components.xml
new file mode 100644
index 0000000..7effd4d
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/plugin/src/main/resources/META-INF/plexus/components.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component-set>
+ <components>
+ <component>
+ <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+ <role-hint>mng-6127</role-hint>
+ <implementation>
+ org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+ </implementation>
+ <configuration>
+ <lifecycles>
+ <lifecycle>
+ <id>default</id>
+ <lifecyclePhases>
+ <generate-sources>
+ <mojos>
+ <mojo>
+ <goal>mng-6127:mng-6127-plugin:test</goal>
+ <configuration>
+ <secondName>second</secondName>
+ </configuration>
+ </mojo>
+ </mojos>
+ </generate-sources>
+ </lifecyclePhases>
+ </lifecycle>
+ </lifecycles>
+ </configuration>
+ </component>
+ <component>
+ <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+ <role-hint>mng-6127</role-hint>
+ <implementation>
+ org.apache.maven.artifact.handler.DefaultArtifactHandler
+ </implementation>
+ <configuration>
+ <type>mng-6127</type>
+ <extension>jar</extension>
+ <language>java</language>
+ <addedToClasspath>true</addedToClasspath>
+ </configuration>
+ </component>
+ </components>
+</component-set>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-a/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-a/pom.xml b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-a/pom.xml
new file mode 100644
index 0000000..c87b8cc
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-a/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>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-project</artifactId>
+ <version>0.1</version>
+ </parent>
+
+ <groupId>mng-6127</groupId>
+ <artifactId>mod-a</artifactId>
+ <version>0.1</version>
+ <packaging>mng-6127</packaging>
+
+ <name>Maven Integration Test :: MNG-6127 :: Project A</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-plugin</artifactId>
+ <version>0.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <name>mod-a</name>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-b/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-b/pom.xml b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-b/pom.xml
new file mode 100644
index 0000000..eae0055
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-b/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>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-project</artifactId>
+ <version>0.1</version>
+ </parent>
+
+ <groupId>mng-6127</groupId>
+ <artifactId>mod-b</artifactId>
+ <version>0.1</version>
+ <packaging>mng-6127</packaging>
+
+ <name>Maven Integration Test :: MNG-6127 :: Project B</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-plugin</artifactId>
+ <version>0.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <name>mod-b</name>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-c/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-c/pom.xml b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-c/pom.xml
new file mode 100644
index 0000000..6a8eae1
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/mod-c/pom.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-project</artifactId>
+ <version>0.1</version>
+ </parent>
+
+ <groupId>mng-6127</groupId>
+ <artifactId>mod-c</artifactId>
+ <version>0.1</version>
+ <packaging>mng-6127</packaging>
+
+ <name>Maven Integration Test :: MNG-6127 :: Project C</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-plugin</artifactId>
+ <version>0.1</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/pom.xml b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/pom.xml
new file mode 100644
index 0000000..e788fb2
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6127-plugin-execution-configuration-interference/project/pom.xml
@@ -0,0 +1,37 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>mng-6127</groupId>
+ <artifactId>mng-6127-project</artifactId>
+ <packaging>pom</packaging>
+ <version>0.1</version>
+
+ <modules>
+ <module>mod-a</module>
+ <module>mod-b</module>
+ <module>mod-c</module>
+ </modules>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/plugin/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/plugin/pom.xml b/core-it-suite/src/test/resources/mng-6127/plugin/pom.xml
deleted file mode 100644
index b8db3ed..0000000
--- a/core-it-suite/src/test/resources/mng-6127/plugin/pom.xml
+++ /dev/null
@@ -1,55 +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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-plugin</artifactId>
- <version>0.1</version>
- <packaging>maven-plugin</packaging>
-
- <properties>
- <maven-version>3.3.1</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>
-</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java b/core-it-suite/src/test/resources/mng-6127/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java
deleted file mode 100644
index 23a3d12..0000000
--- a/core-it-suite/src/test/resources/mng-6127/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package org.apache.maven.its.mng6127.plugin;
-
-/*
- * 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 java.io.OutputStreamWriter;
-import java.io.Writer;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * Test mojo.
- *
- * @goal test
- */
-public class TestMojo
- extends AbstractMojo
-{
- /**
- * The Maven project.
- *
- * @parameter expression="${project}"
- */
- private MavenProject project;
-
- /**
- * The name to write.
- *
- * @parameter
- */
- private String name;
-
- /**
- * The second name to write.
- *
- * @parameter
- */
- private String secondName;
-
- public void execute()
- throws MojoExecutionException
- {
- try
- {
- File file = new File( project.getBasedir(), "configuration.txt" );
- file.getParentFile().mkdirs();
- Writer w = new OutputStreamWriter( new FileOutputStream( file, true ), "UTF-8" );
- try
- {
- if ( name != null )
- {
- w.write( name );
- }
- w.write( secondName );
- }
- finally
- {
- w.close();
- }
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( e.getMessage(), e );
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/plugin/src/main/resources/META-INF/plexus/components.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/plugin/src/main/resources/META-INF/plexus/components.xml b/core-it-suite/src/test/resources/mng-6127/plugin/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index 7effd4d..0000000
--- a/core-it-suite/src/test/resources/mng-6127/plugin/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
- <role-hint>mng-6127</role-hint>
- <implementation>
- org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
- </implementation>
- <configuration>
- <lifecycles>
- <lifecycle>
- <id>default</id>
- <lifecyclePhases>
- <generate-sources>
- <mojos>
- <mojo>
- <goal>mng-6127:mng-6127-plugin:test</goal>
- <configuration>
- <secondName>second</secondName>
- </configuration>
- </mojo>
- </mojos>
- </generate-sources>
- </lifecyclePhases>
- </lifecycle>
- </lifecycles>
- </configuration>
- </component>
- <component>
- <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
- <role-hint>mng-6127</role-hint>
- <implementation>
- org.apache.maven.artifact.handler.DefaultArtifactHandler
- </implementation>
- <configuration>
- <type>mng-6127</type>
- <extension>jar</extension>
- <language>java</language>
- <addedToClasspath>true</addedToClasspath>
- </configuration>
- </component>
- </components>
-</component-set>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/project/mod-a/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/project/mod-a/pom.xml b/core-it-suite/src/test/resources/mng-6127/project/mod-a/pom.xml
deleted file mode 100644
index c87b8cc..0000000
--- a/core-it-suite/src/test/resources/mng-6127/project/mod-a/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>
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-project</artifactId>
- <version>0.1</version>
- </parent>
-
- <groupId>mng-6127</groupId>
- <artifactId>mod-a</artifactId>
- <version>0.1</version>
- <packaging>mng-6127</packaging>
-
- <name>Maven Integration Test :: MNG-6127 :: Project A</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-plugin</artifactId>
- <version>0.1</version>
- <extensions>true</extensions>
- <configuration>
- <name>mod-a</name>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/project/mod-b/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/project/mod-b/pom.xml b/core-it-suite/src/test/resources/mng-6127/project/mod-b/pom.xml
deleted file mode 100644
index eae0055..0000000
--- a/core-it-suite/src/test/resources/mng-6127/project/mod-b/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>
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-project</artifactId>
- <version>0.1</version>
- </parent>
-
- <groupId>mng-6127</groupId>
- <artifactId>mod-b</artifactId>
- <version>0.1</version>
- <packaging>mng-6127</packaging>
-
- <name>Maven Integration Test :: MNG-6127 :: Project B</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-plugin</artifactId>
- <version>0.1</version>
- <extensions>true</extensions>
- <configuration>
- <name>mod-b</name>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/project/mod-c/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/project/mod-c/pom.xml b/core-it-suite/src/test/resources/mng-6127/project/mod-c/pom.xml
deleted file mode 100644
index 6a8eae1..0000000
--- a/core-it-suite/src/test/resources/mng-6127/project/mod-c/pom.xml
+++ /dev/null
@@ -1,48 +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>
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-project</artifactId>
- <version>0.1</version>
- </parent>
-
- <groupId>mng-6127</groupId>
- <artifactId>mod-c</artifactId>
- <version>0.1</version>
- <packaging>mng-6127</packaging>
-
- <name>Maven Integration Test :: MNG-6127 :: Project C</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-plugin</artifactId>
- <version>0.1</version>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/82b043f8/core-it-suite/src/test/resources/mng-6127/project/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6127/project/pom.xml b/core-it-suite/src/test/resources/mng-6127/project/pom.xml
deleted file mode 100644
index e788fb2..0000000
--- a/core-it-suite/src/test/resources/mng-6127/project/pom.xml
+++ /dev/null
@@ -1,37 +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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>mng-6127</groupId>
- <artifactId>mng-6127-project</artifactId>
- <packaging>pom</packaging>
- <version>0.1</version>
-
- <modules>
- <module>mod-a</module>
- <module>mod-b</module>
- <module>mod-c</module>
- </modules>
-
-</project>