From f6a4e060287a7af061d5e1c1c48320e5fffc0cfd Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sat, 20 Sep 2008 22:40:52 +0000 Subject: [PATCH] o Added stub versions of core plugins which participate in the various lifecycle bindings git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@697428 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven-clean-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/CleanMojo.java | 96 +++++++++++++++++++ .../maven-compiler-plugin/pom.xml | 59 ++++++++++++ .../maven/plugin/coreit/CompileMojo.java | 96 +++++++++++++++++++ .../maven/plugin/coreit/TestCompileMojo.java | 96 +++++++++++++++++++ .../maven-deploy-plugin/pom.xml | 59 ++++++++++++ .../maven/plugin/coreit/DeployMojo.java | 96 +++++++++++++++++++ .../maven-ear-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/EarMojo.java | 96 +++++++++++++++++++ .../coreit/GenerateApplicationXmlMojo.java | 96 +++++++++++++++++++ .../maven-ejb-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/EjbMojo.java | 96 +++++++++++++++++++ .../maven-install-plugin/pom.xml | 59 ++++++++++++ .../maven/plugin/coreit/InstallMojo.java | 96 +++++++++++++++++++ .../maven-jar-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/JarMojo.java | 96 +++++++++++++++++++ .../maven-javadoc-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/JarMojo.java | 96 +++++++++++++++++++ .../maven-plugin-plugin/pom.xml | 59 ++++++++++++ .../coreit/AddPluginArtifactMetadataMojo.java | 96 +++++++++++++++++++ .../maven/plugin/coreit/DescriptorMojo.java | 96 +++++++++++++++++++ .../plugin/coreit/UpdateRegistryMojo.java | 96 +++++++++++++++++++ .../maven-rar-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/RarMojo.java | 96 +++++++++++++++++++ .../maven-resources-plugin/pom.xml | 59 ++++++++++++ .../maven/plugin/coreit/ResourcesMojo.java | 96 +++++++++++++++++++ .../plugin/coreit/TestResourcesMojo.java | 96 +++++++++++++++++++ .../maven-site-plugin/pom.xml | 59 ++++++++++++ .../plugin/coreit/AttachDescriptorMojo.java | 96 +++++++++++++++++++ .../maven/plugin/coreit/DeployMojo.java | 96 +++++++++++++++++++ .../apache/maven/plugin/coreit/SiteMojo.java | 96 +++++++++++++++++++ .../maven-source-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/JarMojo.java | 96 +++++++++++++++++++ .../maven-surefire-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/TestMojo.java | 96 +++++++++++++++++++ .../maven-war-plugin/pom.xml | 59 ++++++++++++ .../apache/maven/plugin/coreit/WarMojo.java | 96 +++++++++++++++++++ .../maven-it-plugin-core-stubs/pom.xml | 53 ++++++++++ .../core-integration-testing-plugins/pom.xml | 1 + 39 files changed, 3051 insertions(+) create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/src/main/java/org/apache/maven/plugin/coreit/CleanMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/CompileMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/TestCompileMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/EarMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/GenerateApplicationXmlMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/src/main/java/org/apache/maven/plugin/coreit/EjbMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/src/main/java/org/apache/maven/plugin/coreit/InstallMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/AddPluginArtifactMetadataMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/DescriptorMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/UpdateRegistryMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/src/main/java/org/apache/maven/plugin/coreit/RarMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/ResourcesMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/TestResourcesMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/AttachDescriptorMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/SiteMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/pom.xml create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/src/main/java/org/apache/maven/plugin/coreit/WarMojo.java create mode 100644 its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/pom.xml diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/pom.xml new file mode 100644 index 0000000000..efde9546ff --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-clean-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Clean Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Clean Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/src/main/java/org/apache/maven/plugin/coreit/CleanMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/src/main/java/org/apache/maven/plugin/coreit/CleanMojo.java new file mode 100644 index 0000000000..cd8433fe14 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-clean-plugin/src/main/java/org/apache/maven/plugin/coreit/CleanMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal clean + * @phase clean + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class CleanMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/clean-clean.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/pom.xml new file mode 100644 index 0000000000..6629a80e61 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-compiler-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Compiler Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Compiler Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/CompileMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/CompileMojo.java new file mode 100644 index 0000000000..1a6952566a --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/CompileMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal compile + * @phase compile + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class CompileMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/compiler-compile.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/TestCompileMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/TestCompileMojo.java new file mode 100644 index 0000000000..bbfdef91a3 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/coreit/TestCompileMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal testCompile + * @phase test-compile + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class TestCompileMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/compiler-test-compile.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/pom.xml new file mode 100644 index 0000000000..c8eb3e0569 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-deploy-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Deploy Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Deploy Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java new file mode 100644 index 0000000000..d6a647faed --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal deploy + * @phase deploy + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class DeployMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/deploy-deploy.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/pom.xml new file mode 100644 index 0000000000..6ba56d0175 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-ear-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven EAR Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven EAR Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/EarMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/EarMojo.java new file mode 100644 index 0000000000..fb76c4698b --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/EarMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal ear + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class EarMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/ear-ear.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/GenerateApplicationXmlMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/GenerateApplicationXmlMojo.java new file mode 100644 index 0000000000..29a68cbed3 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ear-plugin/src/main/java/org/apache/maven/plugin/coreit/GenerateApplicationXmlMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal generate-application-xml + * @phase generate-resources + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class GenerateApplicationXmlMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/ear-generate-application-xml.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/pom.xml new file mode 100644 index 0000000000..6cb1db9fb8 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-ejb-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven EJB Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven EJB Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/src/main/java/org/apache/maven/plugin/coreit/EjbMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/src/main/java/org/apache/maven/plugin/coreit/EjbMojo.java new file mode 100644 index 0000000000..2167862083 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-ejb-plugin/src/main/java/org/apache/maven/plugin/coreit/EjbMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal ejb + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class EjbMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/ejb-ejb.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/pom.xml new file mode 100644 index 0000000000..7a87d7fa98 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-install-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Install Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Install Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/src/main/java/org/apache/maven/plugin/coreit/InstallMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/src/main/java/org/apache/maven/plugin/coreit/InstallMojo.java new file mode 100644 index 0000000000..829b60e39b --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-install-plugin/src/main/java/org/apache/maven/plugin/coreit/InstallMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal install + * @phase install + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class InstallMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/install-install.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml new file mode 100644 index 0000000000..d561d5f8a4 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-jar-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven JAR Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven JAR Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java new file mode 100644 index 0000000000..1410b4a1fc --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal jar + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class JarMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/jar-jar.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml new file mode 100644 index 0000000000..a0ccb6d1fe --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-javadoc-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Javadoc Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Javadoc Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java new file mode 100644 index 0000000000..62692026d2 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal jar + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class JarMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/javadoc-jar.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml new file mode 100644 index 0000000000..24420239ad --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-plugin-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Plugin Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Plugin Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/AddPluginArtifactMetadataMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/AddPluginArtifactMetadataMojo.java new file mode 100644 index 0000000000..50e0a41cbf --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/AddPluginArtifactMetadataMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal addPluginArtifactMetadata + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class AddPluginArtifactMetadataMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/plugin-add-plugin-artifact-metadata.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/DescriptorMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/DescriptorMojo.java new file mode 100644 index 0000000000..a7ed586812 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/DescriptorMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal descriptor + * @phase generate-resources + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class DescriptorMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/plugin-descriptor.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/UpdateRegistryMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/UpdateRegistryMojo.java new file mode 100644 index 0000000000..fcd19a5c63 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/coreit/UpdateRegistryMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal updateRegistry + * @phase install + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class UpdateRegistryMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/plugin-update-registry.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml new file mode 100644 index 0000000000..7b5e880349 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-rar-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven RAR Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven RAR Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/src/main/java/org/apache/maven/plugin/coreit/RarMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/src/main/java/org/apache/maven/plugin/coreit/RarMojo.java new file mode 100644 index 0000000000..672affe668 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/src/main/java/org/apache/maven/plugin/coreit/RarMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal rar + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class RarMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/rar-rar.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml new file mode 100644 index 0000000000..9ecc7dbe55 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-resources-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Resources Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Resources Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/ResourcesMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/ResourcesMojo.java new file mode 100644 index 0000000000..fa049bc283 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/ResourcesMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal resources + * @phase process-resources + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class ResourcesMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/resources-resources.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/TestResourcesMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/TestResourcesMojo.java new file mode 100644 index 0000000000..d9ff850224 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/src/main/java/org/apache/maven/plugin/coreit/TestResourcesMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal testResources + * @phase process-test-resources + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class TestResourcesMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/resources-test-resources.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml new file mode 100644 index 0000000000..9d71790efc --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-site-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Site Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Site Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/AttachDescriptorMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/AttachDescriptorMojo.java new file mode 100644 index 0000000000..de5d830834 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/AttachDescriptorMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal attach-descriptor + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class AttachDescriptorMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/site-attach-descriptor.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java new file mode 100644 index 0000000000..93dbc24505 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal deploy + * @phase site-deploy + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class DeployMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/site-deploy.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/SiteMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/SiteMojo.java new file mode 100644 index 0000000000..1ccc673712 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/src/main/java/org/apache/maven/plugin/coreit/SiteMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal site + * @phase site + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class SiteMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/site-site.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml new file mode 100644 index 0000000000..3873b9d6f2 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-source-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Source Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Source Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java new file mode 100644 index 0000000000..caebec5b18 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/src/main/java/org/apache/maven/plugin/coreit/JarMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal jar + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class JarMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/source-jar.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/pom.xml new file mode 100644 index 0000000000..4c73aeb2cd --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-surefire-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven Surefire Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven Surefire Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java new file mode 100644 index 0000000000..408dbbe002 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal test + * @phase test + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class TestMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/surefire-test.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/pom.xml new file mode 100644 index 0000000000..8ab5dbe866 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/pom.xml @@ -0,0 +1,59 @@ + + + + + + 4.0.0 + + + maven-it-plugin-core-stubs + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + org.apache.maven.plugins + maven-war-plugin + 0.1-stub-SNAPSHOT + maven-plugin + + Maven Integration Test Plugin :: Maven WAR Plugin Stub + + A test plugin that has the same coordinates and goals as the Maven WAR Plugin. Its goals only create marker + files to check the principle invocation of the goals via the build lifecycle binding. + + 2008 + + + true + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-project + 2.0 + + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/src/main/java/org/apache/maven/plugin/coreit/WarMojo.java b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/src/main/java/org/apache/maven/plugin/coreit/WarMojo.java new file mode 100644 index 0000000000..211ee23c87 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-war-plugin/src/main/java/org/apache/maven/plugin/coreit/WarMojo.java @@ -0,0 +1,96 @@ +package org.apache.maven.plugin.coreit; + +/* + * 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; +import org.apache.maven.project.MavenProject; + +import java.io.File; +import java.io.IOException; + +/** + * Creates a text file in the project base directory. + * + * @goal war + * @phase package + * + * @author Benjamin Bentmann + * @version $Id$ + */ +public class WarMojo + extends AbstractMojo +{ + + /** + * The current Maven project. + * + * @parameter default-value="${project}" + * @required + * @readonly + */ + private MavenProject project; + + /** + * The path to the output file, relative to the project base directory directory. + * + * @parameter + */ + private String pathname = "target/war-war.txt"; + + /** + * Runs this mojo. + * + * @throws MojoExecutionException If the output file could not be created. + * @throws MojoFailureException If the output file has not been set. + */ + public void execute() + throws MojoExecutionException, MojoFailureException + { + getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); + + if ( pathname == null || pathname.length() <= 0 ) + { + throw new MojoFailureException( "Path name for output file has not been specified" ); + } + + File outputFile = new File( pathname ); + if ( !outputFile.isAbsolute() ) + { + outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); + + try + { + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); + } + + getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); + } + +} diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/pom.xml new file mode 100644 index 0000000000..3c4682c813 --- /dev/null +++ b/its/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/pom.xml @@ -0,0 +1,53 @@ + + + + + + 4.0.0 + + + maven-it-plugins + org.apache.maven.its.plugins + 2.1-SNAPSHOT + + + maven-it-plugin-core-stubs + pom + + Maven Integration Tests :: Core Plugin Stubs + + + maven-clean-plugin + maven-compiler-plugin + maven-deploy-plugin + maven-ear-plugin + maven-ejb-plugin + maven-install-plugin + maven-jar-plugin + maven-javadoc-plugin + maven-plugin-plugin + maven-rar-plugin + maven-resources-plugin + maven-site-plugin + maven-source-plugin + maven-surefire-plugin + maven-war-plugin + + diff --git a/its/core-integration-tests-support/core-integration-testing-plugins/pom.xml b/its/core-integration-tests-support/core-integration-testing-plugins/pom.xml index 414c318db0..2fd1d37484 100644 --- a/its/core-integration-tests-support/core-integration-testing-plugins/pom.xml +++ b/its/core-integration-tests-support/core-integration-testing-plugins/pom.xml @@ -37,6 +37,7 @@ under the License. maven-it-plugin-configuration maven-it-plugin-context-passing + maven-it-plugin-core-stubs maven-it-plugin-file maven-it-plugin-fork maven-it-plugin-generate-envar-properties