maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r697428 [2/3] - in /maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins: ./ maven-it-plugin-core-stubs/ maven-it-plugin-core-stubs/maven-clean-plugin/ maven-it-plugin-core-stubs/maven-clean-p...
Date Sat, 20 Sep 2008 22:40:56 GMT
Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-jar-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven JAR Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-jar-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-javadoc-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven Javadoc Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-javadoc-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-plugin-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven Plugin Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-plugin-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-rar-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven RAR Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-rar-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-resources-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven Resources Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-resources-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-site-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven Site Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-site-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml

Added: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml Sat Sep 20 15:40:52 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>maven-it-plugin-core-stubs</artifactId>
+    <groupId>org.apache.maven.its.plugins</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-source-plugin</artifactId>
+  <version>0.1-stub-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Integration Test Plugin :: Maven Source Plugin Stub</name>
+  <description>
+    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.
+  </description>
+  <inceptionYear>2008</inceptionYear>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-source-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/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
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/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?rev=697428&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/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 (added)
+++ maven/core-integration-testing/trunk/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 Sat Sep 20 15:40:52 2008
@@ -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 );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/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
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/core-integration-testing/trunk/core-integration-tests-support/core-integration-testing-plugins/maven-it-plugin-core-stubs/maven-surefire-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 20 15:40:52 2008
@@ -0,0 +1,7 @@
+target
+target-eclipse
+bin
+.settings
+.project
+.classpath
+*.iml



Mime
View raw message