Repository: maven-integration-testing Updated Branches: refs/heads/master d333f1254 -> e7a7cff9f
Moved test extension and support code to the proper place. Hopefully this will make test more reliable 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/e7a7cff9 Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/e7a7cff9 Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/e7a7cff9 Branch: refs/heads/master Commit: e7a7cff9fcf29fa5b21dcbf870b7ffcf448413ca Parents: d333f12 Author: Kristian Rosenvold <krosenv...@apache.org> Authored: Tue Jun 23 19:00:50 2015 +0200 Committer: Kristian Rosenvold <krosenv...@apache.org> Committed: Tue Jun 23 19:14:10 2015 +0200 ---------------------------------------------------------------------- .../MavenITmng5805PkgTypeMojoConfiguration.java | 18 +---- .../test/resources/bootstrap/group-3/pom.xml | 19 ++++++ .../test/resources/bootstrap/group-7/pom.xml | 67 ------------------ .../src/test/resources/bootstrap/pom.xml | 2 +- .../extension/pom.xml | 30 --------- .../resources/META-INF/plexus/components.xml | 53 --------------- .../plugin-dep/pom.xml | 30 --------- .../apache/maven/its/mng5805/TestClass1.java | 5 -- .../plugin/pom.xml | 49 -------------- .../maven/its/mng5805/plugin/TestMojo.java | 51 -------------- .../pom.xml | 40 +++++++++++ .../project/pom.xml | 40 ----------- .../core-it-plugins/mng5805-extension/pom.xml | 37 ++++++++++ .../resources/META-INF/plexus/components.xml | 71 ++++++++++++++++++++ .../core-it-plugins/mng5805-plugin-dep/pom.xml | 37 ++++++++++ .../apache/maven/its/mng5805/TestClass1.java | 28 ++++++++ .../core-it-plugins/mng5805-plugin/pom.xml | 55 +++++++++++++++ .../maven/its/mng5805/plugin/TestMojo.java | 51 ++++++++++++++ core-it-support/core-it-plugins/pom.xml | 3 + 19 files changed, 344 insertions(+), 342 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5805PkgTypeMojoConfiguration.java ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5805PkgTypeMojoConfiguration.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5805PkgTypeMojoConfiguration.java index 73d317f..ada7448 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5805PkgTypeMojoConfiguration.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5805PkgTypeMojoConfiguration.java @@ -20,22 +20,8 @@ public class MavenITmng5805PkgTypeMojoConfiguration Verifier verifier; - verifier = newVerifier( new File( testDir, "extension" ).getAbsolutePath() ); - verifier.executeGoal( "install" ); - verifier.verifyErrorFreeLog(); - verifier.resetStreams(); - - verifier = newVerifier( new File( testDir, "plugin" ).getAbsolutePath() ); - verifier.executeGoal( "install" ); - verifier.verifyErrorFreeLog(); - verifier.resetStreams(); - - verifier = newVerifier( new File( testDir, "plugin-dep" ).getAbsolutePath() ); - verifier.executeGoal( "install" ); - verifier.verifyErrorFreeLog(); - verifier.resetStreams(); - - verifier = newVerifier( new File( testDir, "project" ).getAbsolutePath() ); + + verifier = newVerifier( testDir.getAbsolutePath() ); verifier.executeGoal( "validate" ); verifier.verifyErrorFreeLog(); verifier.verifyTextInLog( "CLASS_NAME=org.apache.maven.its.mng5805.TestClass1" ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/bootstrap/group-3/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/bootstrap/group-3/pom.xml b/core-it-suite/src/test/resources/bootstrap/group-3/pom.xml index 0e27527..1538441 100644 --- a/core-it-suite/src/test/resources/bootstrap/group-3/pom.xml +++ b/core-it-suite/src/test/resources/bootstrap/group-3/pom.xml @@ -126,6 +126,25 @@ under the License. </dependency> <dependency> <groupId>org.apache.maven.its.plugins</groupId> + <artifactId>mng-5805-pkg-type-mojo-configuration-extension</artifactId> + <version>${itPluginVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.its.plugins</groupId> + <artifactId>mng-5805-pkg-type-mojo-configuration-plugin</artifactId> + <version>${itPluginVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.its.plugins</groupId> + <artifactId>mng-5805-pkg-type-mojo-configuration-extension</artifactId> + <version>${itPluginVersion}</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-extension2</artifactId> <version>${itPluginVersion}</version> <scope>runtime</scope> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/bootstrap/group-7/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/bootstrap/group-7/pom.xml b/core-it-suite/src/test/resources/bootstrap/group-7/pom.xml deleted file mode 100644 index 837c18a..0000000 --- a/core-it-suite/src/test/resources/bootstrap/group-7/pom.xml +++ /dev/null @@ -1,67 +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>org.apache.maven.its.bootstrap</groupId> - <artifactId>maven-it-boostrap</artifactId> - <version>1.0</version> - </parent> - - <groupId>org.apache.maven.its.bootstrap</groupId> - <artifactId>group-7</artifactId> - <version>1.0</version> - <packaging>jar</packaging> - - <name>Maven Integration Test :: Boostrap :: Group-7</name> - - <properties> - </properties> - - <!-- Core version used by all the it projects --> - <!-- todo: update all its to 3.0 --> - - <dependencies> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-plugin-api</artifactId> - <version>3.0</version> - </dependency> - <dependency> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - </dependency> - <dependency> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-plugin-plugin</artifactId> - <version>3.2</version> - </dependency> - <dependency> - <groupId>org.codehaus.plexus</groupId> - <artifactId>plexus-utils</artifactId> - <version>1.1</version> - <scope>runtime</scope> - </dependency> - </dependencies> -</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/bootstrap/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/bootstrap/pom.xml b/core-it-suite/src/test/resources/bootstrap/pom.xml index 358b931..87d8df6 100644 --- a/core-it-suite/src/test/resources/bootstrap/pom.xml +++ b/core-it-suite/src/test/resources/bootstrap/pom.xml @@ -43,7 +43,6 @@ under the License. <module>group-4</module> <module>group-5</module> <module>group-6</module> - <module>group-7</module> </modules> <properties> @@ -68,6 +67,7 @@ under the License. <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> </plugin> + </plugins> </build> </project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/pom.xml b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/pom.xml deleted file mode 100644 index d3bda34..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/pom.xml +++ /dev/null @@ -1,30 +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-5805-pkg-type-mojo-configuration</groupId> - <artifactId>mng-5805-pkg-type-mojo-configuration-extension</artifactId> - <version>0.1</version> - <packaging>jar</packaging> -</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/src/main/resources/META-INF/plexus/components.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/src/main/resources/META-INF/plexus/components.xml b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/src/main/resources/META-INF/plexus/components.xml deleted file mode 100644 index 2bf810d..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/extension/src/main/resources/META-INF/plexus/components.xml +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<component-set> - <components> - - <component> - <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role> - <role-hint>mng5805</role-hint> - <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation> - <configuration> - <lifecycles> - <lifecycle> - <id>default</id> - <phases> - <validate> - <mojos> - <mojo> - <goal> - mng-5805-pkg-type-mojo-configuration:mng-5805-pkg-type-mojo-configuration-plugin:0.1:test - </goal> - <configuration> - <className>org.apache.maven.its.mng5805.TestClass1</className> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.maven.its.mng5805</groupId> - <artifactId>plugin-dep</artifactId> - <version>0.1</version> - </dependency> - </dependencies> - </mojo> - </mojos> - </validate> - </phases> - </lifecycle> - </lifecycles> - </configuration> - </component> - - <component> - <role>org.apache.maven.artifact.handler.ArtifactHandler</role> - <role-hint>mng5805</role-hint> - <implementation> - org.apache.maven.artifact.handler.DefaultArtifactHandler - </implementation> - <configuration> - <extension>zip</extension> - <type>mng5805</type> - <packaging>mng5805</packaging> - </configuration> - </component> - - </components> -</component-set> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/pom.xml b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/pom.xml deleted file mode 100644 index b640125..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/pom.xml +++ /dev/null @@ -1,30 +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>org.apache.maven.its.mng5805</groupId> - <artifactId>plugin-dep</artifactId> - <version>0.1</version> - -</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java deleted file mode 100644 index e20a23c..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.apache.maven.its.mng5805; - -public class TestClass1 { - -} http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/pom.xml b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/pom.xml deleted file mode 100644 index c08a250..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/pom.xml +++ /dev/null @@ -1,49 +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-5805-pkg-type-mojo-configuration</groupId> - <artifactId>mng-5805-pkg-type-mojo-configuration-plugin</artifactId> - <version>0.1</version> - <packaging>maven-plugin</packaging> - - <properties> - <maven-version>3.0</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> - </dependencies> -</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java deleted file mode 100644 index b4e4e71..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.apache.maven.its.mng5805.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 org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; - -/** - * @goal test - */ -public class TestMojo - extends AbstractMojo -{ - /** - * @parameter default-value="org.apache.maven.its.mng5805.DoesNotExist" - */ - private String className; - - public void execute() - throws MojoExecutionException - { - - getLog().info( "CLASS_NAME=" + className ); - - try - { - Class.forName( className ); - } - catch (ClassNotFoundException e) - { - throw new MojoExecutionException( e.getMessage(), e ); - } - } -} http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/pom.xml b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/pom.xml new file mode 100644 index 0000000..8c53363 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/pom.xml @@ -0,0 +1,40 @@ +<?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-5805-pkg-type-mojo-configuration</groupId> + <artifactId>mng-5805-pkg-type-mojo-configuration-project</artifactId> + <version>0.1</version> + <packaging>mng5805</packaging> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.its.plugins</groupId> + <artifactId>mng-5805-pkg-type-mojo-configuration-extension</artifactId> + <version>2.1-SNAPSHOT</version> + </extension> + </extensions> + </build> +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/project/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/project/pom.xml b/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/project/pom.xml deleted file mode 100644 index bcc9131..0000000 --- a/core-it-suite/src/test/resources/mng-5805-pkg-type-mojo-configuration/project/pom.xml +++ /dev/null @@ -1,40 +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-5805-pkg-type-mojo-configuration</groupId> - <artifactId>mng-5805-pkg-type-mojo-configuration-project</artifactId> - <version>0.1</version> - <packaging>mng5805</packaging> - - <build> - <extensions> - <extension> - <groupId>mng-5805-pkg-type-mojo-configuration</groupId> - <artifactId>mng-5805-pkg-type-mojo-configuration-extension</artifactId> - <version>0.1</version> - </extension> - </extensions> - </build> -</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/mng5805-extension/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/mng5805-extension/pom.xml b/core-it-support/core-it-plugins/mng5805-extension/pom.xml new file mode 100644 index 0000000..ce7cdd1 --- /dev/null +++ b/core-it-support/core-it-plugins/mng5805-extension/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> + + <parent> + <artifactId>maven-it-plugins</artifactId> + <groupId>org.apache.maven.its.plugins</groupId> + <version>2.1-SNAPSHOT</version> + </parent> + + <artifactId>mng-5805-pkg-type-mojo-configuration-extension</artifactId> + <packaging>jar</packaging> + + <name>Maven IT Plugin :: mng-5805 extension</name> + +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/mng5805-extension/src/main/resources/META-INF/plexus/components.xml ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/mng5805-extension/src/main/resources/META-INF/plexus/components.xml b/core-it-support/core-it-plugins/mng5805-extension/src/main/resources/META-INF/plexus/components.xml new file mode 100644 index 0000000..e7fb615 --- /dev/null +++ b/core-it-support/core-it-plugins/mng5805-extension/src/main/resources/META-INF/plexus/components.xml @@ -0,0 +1,71 @@ +<?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. +--> +<component-set> + <components> + + <component> + <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role> + <role-hint>mng5805</role-hint> + <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation> + <configuration> + <lifecycles> + <lifecycle> + <id>default</id> + <phases> + <validate> + <mojos> + <mojo> + <goal> + org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-plugin:2.1-SNAPSHOT:test + </goal> + <configuration> + <className>org.apache.maven.its.mng5805.TestClass1</className> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.maven.its.plugins</groupId> + <artifactId>mng-5805-pkg-type-mojo-configuration-plugin-dep</artifactId> + <version>2.1-SNAPSHOT</version> + </dependency> + </dependencies> + </mojo> + </mojos> + </validate> + </phases> + </lifecycle> + </lifecycles> + </configuration> + </component> + + <component> + <role>org.apache.maven.artifact.handler.ArtifactHandler</role> + <role-hint>mng5805</role-hint> + <implementation> + org.apache.maven.artifact.handler.DefaultArtifactHandler + </implementation> + <configuration> + <extension>zip</extension> + <type>mng5805</type> + <packaging>mng5805</packaging> + </configuration> + </component> + + </components> +</component-set> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/mng5805-plugin-dep/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/mng5805-plugin-dep/pom.xml b/core-it-support/core-it-plugins/mng5805-plugin-dep/pom.xml new file mode 100644 index 0000000..1c29232 --- /dev/null +++ b/core-it-support/core-it-plugins/mng5805-plugin-dep/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> + + <parent> + <artifactId>maven-it-plugins</artifactId> + <groupId>org.apache.maven.its.plugins</groupId> + <version>2.1-SNAPSHOT</version> + </parent> + + <artifactId>mng-5805-pkg-type-mojo-configuration-plugin-dep</artifactId> + + <name>Maven IT Plugin :: mng-5805 plugin-dep</name> + + +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/mng5805-plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/mng5805-plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java b/core-it-support/core-it-plugins/mng5805-plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java new file mode 100644 index 0000000..ac6ebf9 --- /dev/null +++ b/core-it-support/core-it-plugins/mng5805-plugin-dep/src/main/java/org/apache/maven/its/mng5805/TestClass1.java @@ -0,0 +1,28 @@ +package org.apache.maven.its.mng5805; + +/* + * 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. + */ + +/** + * A test class + */ +public class TestClass1 +{ + +} http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/mng5805-plugin/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/mng5805-plugin/pom.xml b/core-it-support/core-it-plugins/mng5805-plugin/pom.xml new file mode 100644 index 0000000..c24f9aa --- /dev/null +++ b/core-it-support/core-it-plugins/mng5805-plugin/pom.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project 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> + + <parent> + <artifactId>maven-it-plugins</artifactId> + <groupId>org.apache.maven.its.plugins</groupId> + <version>2.1-SNAPSHOT</version> + </parent> + + <artifactId>mng-5805-pkg-type-mojo-configuration-plugin</artifactId> + <packaging>maven-plugin</packaging> + + <properties> + <maven-version>3.0</maven-version> + </properties> + + <name>Maven IT Plugin :: mng-5805 plugin</name> + + <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> + </dependencies> +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/mng5805-plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/mng5805-plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java b/core-it-support/core-it-plugins/mng5805-plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java new file mode 100644 index 0000000..a3a36ee --- /dev/null +++ b/core-it-support/core-it-plugins/mng5805-plugin/src/main/java/org/apache/maven/its/mng5805/plugin/TestMojo.java @@ -0,0 +1,51 @@ +package org.apache.maven.its.mng5805.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 org.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; + +/** + * @goal test + */ +public class TestMojo + extends AbstractMojo +{ + /** + * @parameter default-value="org.apache.maven.its.mng5805.DoesNotExist" + */ + private String className; + + public void execute() + throws MojoExecutionException + { + + getLog().info( "CLASS_NAME=" + className ); + + try + { + Class.forName( className ); + } + catch ( ClassNotFoundException e ) + { + throw new MojoExecutionException( e.getMessage(), e ); + } + } +} http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/e7a7cff9/core-it-support/core-it-plugins/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-support/core-it-plugins/pom.xml b/core-it-support/core-it-plugins/pom.xml index 9c6c5f7..83b5f79 100644 --- a/core-it-support/core-it-plugins/pom.xml +++ b/core-it-support/core-it-plugins/pom.xml @@ -78,6 +78,9 @@ under the License. <module>maven-it-plugin-extension2</module> <module>maven-it-plugin-plexus-lifecycle</module> <module>maven-it-plugin-settings</module> + <module>mng5805-extension</module> + <module>mng5805-plugin</module> + <module>mng5805-plugin-dep</module> </modules> <scm>