You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:35:42 UTC

[maven-invoker-plugin] annotated tag maven-invoker-plugin-1.0 created (now 679d408)

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a change to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git.


      at 679d408  (tag)
 tagging dbc8899ef71581847349d63138e4962c6a0a3818 (commit)
      by John Dennis Casey
      on Wed Jan 17 22:26:01 2007 +0000

- Log -----------------------------------------------------------------
maven-invoker-plugin-1.0
-----------------------------------------------------------------------

This annotated tag includes the following new commits:

     new 840fd36  Initial pass at a maven-forking plugin...uses the maven-invoker API from maven/shared.
     new 9545d35  changing pom to use new parent, and added sysout/syserr handling for scripts.
     new 6f921e1  Adding ability to specify a single POM to build as an override to the scanning behavior.
     new 444329b  Cleaning up output and fixing single-pom override parameter.
     new b866164  Adding SCM info for the sandbox location.
     new c3d96d3  ...and fixing SCM info for the sandbox location.
     new c9d8e23  Adding option to stream build logs to the mojo output.
     new f7bd57a  Changing verification script to be more general-purpose, as a post-build hook.
     new 610c654  MNG-2587: [maven-invoker-plugin] build.log file should not be placed inside the target/ directory
     new 1c9e4c3  Updating the parent-pom version.
     new c56c0d1  moved to sandbox
     new b6b9d9c  o starting site for invoker plugin
     new 694825a  o adding a faq
     new 59931b9  o adding documentation for the invoker plugin
     new 6104c1c  o inherit the SCM element
     new 7f5f4d0  o adding prereq
     new 59a22b7  Adding parameters to suppress summary and inject global test properties for all IT builds.
     new 65bf500  o updating to latest released parent
     new b505fe0  - move plugin-plugin out of 'reporting' for plugins. It's a required part of the site, and does not cause any issues with the reactor or site generation - update to snapshots
     new 76b2d9b  o rolling back some snapshots to releases to prepare for a release, the vote was in october so we'll need to do it again, but this is necessary for automating some non-standard builds for the ITs
     new 886d6fa  o correctly reference
     new d7f13fd  o udating the license headers
     new 873778c  o fix reference
     new dbc8899  [maven-scm] copy for tag maven-invoker-plugin-1.0

The 24 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@maven.apache.org" <co...@maven.apache.org>'].

[maven-invoker-plugin] 13/24: o adding a faq

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 694825a96f7695e07b5cc8eca57ea2cd96c36185
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Dec 4 04:30:48 2006 +0000

    o adding a faq
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@482062 13f79535-47bb-0310-9956-ffa450edef68
---
 src/site/fml/faq.fml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml
new file mode 100644
index 0000000..b7c21ff
--- /dev/null
+++ b/src/site/fml/faq.fml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!--
+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.
+-->
+
+<faqs id="FAQ" title="Frequently Asked Questions">
+ <part id="General">
+   <faq id="question1">
+     <question>Why do I need to use this plugin?</question>
+     <answer>
+       <p>
+         This plugin greatly reduces the pain associated with consistent packaging concerns across
+         a large set of projects, or an entire organization. Any project can specify the use of a
+         remote resource bundle and have the resources incorporated into their packaging. This means
+         that you can create standard settings in a parent POM somewhere in the project hierarchy and
+         have all projects use package common resources in standard way like licenses, other legal 
+         notices and disclaimers, or anything else that may be common.
+       </p>
+     </answer>
+   </faq>
+ </part>
+</faqs>
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 12/24: o starting site for invoker plugin

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit b6b9d9cd21aeb6412fd22afb6fef5419214f1ebd
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Dec 4 04:30:04 2006 +0000

    o starting site for invoker plugin
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@482061 13f79535-47bb-0310-9956-ffa450edef68
---
 src/site/apt/index.apt | 30 ++++++++++++++++++++++++++++++
 src/site/apt/usage.apt | 21 +++++++++++++++++++++
 src/site/site.xml      | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 87 insertions(+)

diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
new file mode 100644
index 0000000..275dfd9
--- /dev/null
+++ b/src/site/apt/index.apt
@@ -0,0 +1,30 @@
+ ------
+ Introduction
+ ------
+ Jason van Zyl
+ ------
+ 27 November 2006
+ ------
+
+Maven 2 Invoker Plugin
+
+  This plugin is used to transform your development life. Don't bother with self-help
+  books on how to get over your build-time blues. Just use this plugin and
+  everything will miraculously change.
+
+* Goals Overview
+
+  * {{{superduper-transform.html}superduper:transform}} performs the miraculous build transformation.
+
+  []
+
+* Usage
+
+  Instructions on how to use the SuperDuper Plugin can be found {{{usage.html}here}}.
+
+* Examples
+
+  To provide you with better understanding of some usages of the SuperDuper Plugin,
+  you can take a look at the following examples:
+
+  * {{{examples/sample-example.html}Sample Example}}
diff --git a/src/site/apt/usage.apt b/src/site/apt/usage.apt
new file mode 100644
index 0000000..9ebd6e8
--- /dev/null
+++ b/src/site/apt/usage.apt
@@ -0,0 +1,21 @@
+ ------
+ Usage
+ ------
+ Jason van Zyl
+ ------
+ 27 November 2006
+ ------
+
+Usage
+
+ This plugin is used to create miraculously transform your build!
+ 
+*How to miraculously transform your build
+ 
+ Describe here how you miraculously transform peoples' builds! 
+
+-------------------
+
+Put your awesome example here.
+
+-------------------
\ No newline at end of file
diff --git a/src/site/site.xml b/src/site/site.xml
new file mode 100644
index 0000000..d538321
--- /dev/null
+++ b/src/site/site.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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>
+  <body>
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+      <item name="Goals" href="plugin-info.html"/>
+      <item name="Usage" href="usage.html"/>
+      <item name="FAQ" href="faq.html"/>
+    </menu>
+    <!--
+    <menu name="Examples">
+      <item name="Alternate Location for the changes.xml File" href="examples/alternate-changes-xml-location.html"/>
+      <item name="SMTP Authentication" href="examples/smtp-authentication.html"/>
+    </menu>
+    -->
+  </body>
+</project>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 10/24: Updating the parent-pom version.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 1c9e4c3034d3dda9e9e4ee5207e9591cf62c7a52
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Sat Nov 18 05:33:42 2006 +0000

    Updating the parent-pom version.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@476446 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 6101745..1e9e93f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
   <parent>
     <artifactId>maven-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>2-SNAPSHOT</version>
+    <version>3</version>
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 16/24: o adding prereq

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 7f5f4d0d3a019d84786bcdf792d05205d98c1ce6
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Dec 4 16:50:56 2006 +0000

    o adding prereq
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@482246 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pom.xml b/pom.xml
index d5b35bb..d368d93 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,6 +10,9 @@
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>
+  <prerequisites>                                                                                                                                                      
+    <maven>2.0</maven>                                                                                                                                                 
+  </prerequisites>   
   <packaging>maven-plugin</packaging>
   <name>Maven Invoker Plugin</name>
   <dependencies>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 06/24: ...and fixing SCM info for the sandbox location.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit c3d96d358f1ecf7e1fea44fae328cbb62fb0c9fb
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Aug 15 14:51:15 2006 +0000

    ...and fixing SCM info for the sandbox location.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@431609 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6ed2671..6101745 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,8 +14,8 @@
   <packaging>maven-plugin</packaging>
   <name>Maven Invoker Plugin</name>
   <scm>
-    <connection>http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</connection>
-    <developerConnection>https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</developerConnection>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</developerConnection>
     <url>http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</url>
   </scm>
   <dependencies>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 11/24: moved to sandbox

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit c56c0d1c4e835a6a5a792d0a6205087f56ac322a
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Dec 4 04:25:45 2006 +0000

    moved to sandbox
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@482059 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1e9e93f..3e8d4d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,13 +1,12 @@
 <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"
->
+  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-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>3</version>
+    <version>4</version>
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>
@@ -22,39 +21,33 @@
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-invoker</artifactId>
-      <version>2.0.5-SNAPSHOT</version>
+      <version>2.0.5</version>
     </dependency>
-
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-core</artifactId>
       <version>2.0</version>
     </dependency>
-
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-project</artifactId>
       <version>2.0</version>
-    </dependency>
-    
+    </dependency>   
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-artifact</artifactId>
       <version>2.0</version>
     </dependency>
-
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>file-management</artifactId>
-      <version>1.1-SNAPSHOT</version>
+      <version>1.1</version>
     </dependency>
-
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-io</artifactId>
-      <version>1.0-SNAPSHOT</version>
+      <version>1.0</version>
     </dependency>
-
     <dependency>
       <groupId>org.beanshell</groupId>
       <artifactId>bsh</artifactId>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 05/24: Adding SCM info for the sandbox location.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit b8661646fe9dc945dc2dd42087f5a2644d80a4a4
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Aug 15 14:49:47 2006 +0000

    Adding SCM info for the sandbox location.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@431608 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pom.xml b/pom.xml
index 7162b00..6ed2671 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,11 @@
   <version>1.0-SNAPSHOT</version>
   <packaging>maven-plugin</packaging>
   <name>Maven Invoker Plugin</name>
+  <scm>
+    <connection>http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</connection>
+    <developerConnection>https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</developerConnection>
+    <url>http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</url>
+  </scm>
   <dependencies>
     <dependency>
       <groupId>org.apache.maven.shared</groupId>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 19/24: - move plugin-plugin out of 'reporting' for plugins. It's a required part of the site, and does not cause any issues with the reactor or site generation - update to snapshots

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit b505fe045ab7a9124792c250c1dc27585e06364b
Author: Brett Leslie Porter <br...@apache.org>
AuthorDate: Tue Jan 9 10:30:16 2007 +0000

    - move plugin-plugin out of 'reporting' for plugins. It's a required part of the site, and does not cause any issues with the reactor or site generation
    - update to snapshots
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@494359 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 18642aa..d6cadbe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <artifactId>maven-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>7</version>
+    <version>8-SNAPSHOT</version>
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 03/24: Adding ability to specify a single POM to build as an override to the scanning behavior.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 6f921e1ade278ad2551d392ed1ffab45bbabc50d
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Wed Aug 9 23:48:22 2006 +0000

    Adding ability to specify a single POM to build as an override to the scanning behavior.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@430191 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/maven/plugin/invoker/InvokerMojo.java   | 31 ++++++++++++++++------
 1 file changed, 23 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index 685cc73..dff9799 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -29,6 +29,7 @@ import org.apache.maven.shared.invoker.Invoker;
 import org.apache.maven.shared.invoker.MavenInvocationException;
 import org.apache.maven.shared.model.fileset.FileSet;
 import org.apache.maven.shared.model.fileset.util.FileSetManager;
+import org.apache.maven.wagon.PathUtils;
 import org.codehaus.plexus.util.IOUtil;
 import org.codehaus.plexus.util.cli.CommandLineException;
 
@@ -70,6 +71,13 @@ public class InvokerMojo
      * @parameter expression="${invoker.projectsDirectory}" default-value="${basedir}/src/projects/"
      */
     private File projectsDirectory;
+    
+    /**
+     * A single POM to build, skipping any scanning parameters and behavior.
+     * 
+     * @parameter expression="${invoker.pom}"
+     */
+    private File pom;
 
     /**
      * Includes for searching the integration test directory. This parameter is meant to be set from the POM.
@@ -517,17 +525,24 @@ public class InvokerMojo
     private String[] getPoms()
         throws IOException
     {
-        final FileSet fs = new FileSet();
+        if ( pom != null && pom.exists() )
+        {
+            return new String[]{ PathUtils.toRelative( projectsDirectory, pom.getAbsolutePath() ) };
+        }
+        else
+        {
+            final FileSet fs = new FileSet();
 
-        fs.setIncludes( pomIncludes );
-        fs.setExcludes( pomExcludes );
-        fs.setDirectory( projectsDirectory.getCanonicalPath() );
-        fs.setFollowSymlinks( false );
-        fs.setUseDefaultExcludes( false );
+            fs.setIncludes( pomIncludes );
+            fs.setExcludes( pomExcludes );
+            fs.setDirectory( projectsDirectory.getCanonicalPath() );
+            fs.setFollowSymlinks( false );
+            fs.setUseDefaultExcludes( false );
 
-        final FileSetManager fsm = new FileSetManager( getLog() );
+            final FileSetManager fsm = new FileSetManager( getLog() );
 
-        return fsm.getIncludedFiles( fs );
+            return fsm.getIncludedFiles( fs );
+        }
     }
 
     private List readFromFile( final File projectGoalList )

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 21/24: o correctly reference

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 886d6fa8a169c5ef0522df125c6d88a34efab45c
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Jan 15 17:03:57 2007 +0000

    o correctly reference
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@496407 13f79535-47bb-0310-9956-ffa450edef68
---
 src/site/apt/index.apt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
index bb69d6a..fede332 100644
--- a/src/site/apt/index.apt
+++ b/src/site/apt/index.apt
@@ -13,10 +13,10 @@ Maven 2 Invoker Plugin
 
 * Goals Overview
 
-  * {{{invoker-run.html}invoker:run}} runs a set of Maven projects that you have configured in your POM.
+  * {{{plugin-run.html}invoker:run}} runs a set of Maven projects that you have configured in your POM.
 
   []
 
 * Usage
 
-  Instructions on how to use the Invoker Plugin can be found {{{usage.html}here}}.
\ No newline at end of file
+  Instructions on how to use the Invoker Plugin can be found {{{usage.html}here}}.

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 15/24: o inherit the SCM element

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 6104c1c6e0251139c1b6513e065507dfcd0af400
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Dec 4 16:48:45 2006 +0000

    o inherit the SCM element
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@482242 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 3e8d4d8..d5b35bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,11 +12,6 @@
   <version>1.0-SNAPSHOT</version>
   <packaging>maven-plugin</packaging>
   <name>Maven Invoker Plugin</name>
-  <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</developerConnection>
-    <url>http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin</url>
-  </scm>
   <dependencies>
     <dependency>
       <groupId>org.apache.maven.shared</groupId>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 20/24: o rolling back some snapshots to releases to prepare for a release, the vote was in october so we'll need to do it again, but this is necessary for automating some non-standard builds for the ITs

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 76b2d9beefdcb227bfd0fa0b805e712ae19a3946
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Sun Jan 14 17:39:48 2007 +0000

    o rolling back some snapshots to releases to prepare for a release, the vote was in october so we'll need to do it again, but this is necessary for automating some non-standard builds for the ITs
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@496100 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index d6cadbe..674e9e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,12 +36,12 @@
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>file-management</artifactId>
-      <version>1.2-SNAPSHOT</version>
+      <version>1.1</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-io</artifactId>
-      <version>1.1-SNAPSHOT</version>
+      <version>1.0</version>
     </dependency>
     <dependency>
       <groupId>org.beanshell</groupId>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 07/24: Adding option to stream build logs to the mojo output.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit c9d8e23ae6941bfbc14ec7229d2fee1b83dd2e5a
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Aug 15 15:23:07 2006 +0000

    Adding option to stream build logs to the mojo output.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@431618 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/maven/plugin/invoker/FileLogger.java    | 22 +++++++++++++++++++++-
 .../apache/maven/plugin/invoker/InvokerMojo.java   | 16 +++++++++++++++-
 2 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java b/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
index 40ae2f4..aa944f9 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
@@ -1,5 +1,6 @@
 package org.apache.maven.plugin.invoker;
 
+import org.apache.maven.plugin.logging.Log;
 import org.apache.maven.shared.invoker.InvocationOutputHandler;
 import org.codehaus.plexus.util.IOUtil;
 
@@ -15,10 +16,19 @@ public class FileLogger
     private PrintStream stream;
     
     private boolean shouldFinalize = true;
+
+    private final Log log;
     
     public FileLogger( File outputFile )
         throws IOException
     {
+        this( outputFile, null );
+    }
+    
+    public FileLogger( File outputFile, Log log )
+        throws IOException
+    {
+        this.log = log;
         stream = new PrintStream( new FileOutputStream( outputFile  ) );
         
         Runnable finalizer = new Runnable()
@@ -37,7 +47,7 @@ public class FileLogger
         
         Runtime.getRuntime().addShutdownHook( new Thread( finalizer ) );
     }
-    
+
     public PrintStream getPrintStream()
     {
         return stream;
@@ -47,10 +57,20 @@ public class FileLogger
     {
         stream.println( line );
         stream.flush();
+        
+        if ( log != null )
+        {
+            log.info( line );
+        }
     }
     
     public void close()
     {
+        if ( stream != null )
+        {
+            stream.flush();
+        }
+        
         IOUtil.close( stream );
     }
     
diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index 8b5b288..b5d7e5e 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -58,6 +58,13 @@ public class InvokerMojo
     extends AbstractMojo
 {
     /**
+     * Flag used to determine whether the build logs should be output to the normal mojo log.
+     * 
+     * @parameter expression="${invoker.streamLogs}" default-value="false"
+     */
+    private boolean streamLogs;
+    
+    /**
      * The local repository for caching artifacts.
      * 
      * @parameter expression="${invoker.localRepositoryPath}"
@@ -237,7 +244,14 @@ public class InvokerMojo
 
                 try
                 {
-                    logger = new FileLogger( outputLog );
+                    if ( streamLogs )
+                    {
+                        logger = new FileLogger( outputLog, getLog() );
+                    }
+                    else
+                    {
+                        logger = new FileLogger( outputLog );
+                    }
                     
                     getLog().debug( "build log initialized in: " + outputLog );
                 }

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 08/24: Changing verification script to be more general-purpose, as a post-build hook.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit f7bd57a98ee8929c57f9fb2a046b17ba0080a30e
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Wed Aug 23 19:38:27 2006 +0000

    Changing verification script to be more general-purpose, as a post-build hook.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@434137 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index b5d7e5e..236436b 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -126,11 +126,11 @@ public class InvokerMojo
     private String preBuildHookScript;
 
     /**
-     * relative path of a verification beanshell script to run after executing the build.
+     * relative path of a cleanup/verification beanshell script to run after executing the build.
      * 
-     * @parameter expression="${invoker.verificationScript}" default-value="verify.bsh"
+     * @parameter expression="${invoker.postBuildHookScript}" default-value="postbuild.bsh"
      */
-    private String verificationScript;
+    private String postBuildHookScript;
 
     /**
      * Location of a properties file that defines CLI properties for the test.
@@ -415,11 +415,11 @@ public class InvokerMojo
     {
         boolean result = true;
 
-        if ( verificationScript != null )
+        if ( postBuildHookScript != null )
         {
             try
             {
-                result = runScript( "verification script", basedir, verificationScript, logger );
+                result = runScript( "verification script", basedir, postBuildHookScript, logger );
             }
             catch ( final IOException e )
             {

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 24/24: [maven-scm] copy for tag maven-invoker-plugin-1.0

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit dbc8899ef71581847349d63138e4962c6a0a3818
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Wed Jan 17 22:26:01 2007 +0000

    [maven-scm] copy for tag maven-invoker-plugin-1.0
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-invoker-plugin-1.0@497211 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 34 ++++++++++------------------------
 1 file changed, 10 insertions(+), 24 deletions(-)

diff --git a/pom.xml b/pom.xml
index 76daf0e..6b3a762 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,31 +1,12 @@
-<!--
-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: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' xmlns='http://maven.apache.org/POM/4.0.0'>
+<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-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>8-SNAPSHOT</version>
+    <version>7</version>
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
-  <version>1.0-SNAPSHOT</version>
+  <version>1.0</version>
   <prerequisites>                                                                                                                                                      
     <maven>2.0</maven>                                                                                                                                                 
   </prerequisites>   
@@ -35,7 +16,7 @@ under the License.
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-invoker</artifactId>
-      <version>2.0.6-SNAPSHOT</version>
+      <version>2.0.6</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
@@ -68,5 +49,10 @@ under the License.
       <version>2.0b4</version>
     </dependency>
   </dependencies>
-</project>
 
+  <scm>
+    <connection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-invoker-plugin-1.0</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-invoker-plugin-1.0</developerConnection>
+    <url>https://svn.apache.org/repos/asf/maven/plugins/tags/maven-invoker-plugin-1.0</url>
+  </scm>
+</project>
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 14/24: o adding documentation for the invoker plugin

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 59931b99ff2461d5887e941f2c8b8e409cbedf62
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Dec 4 16:32:52 2006 +0000

    o adding documentation for the invoker plugin
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@482234 13f79535-47bb-0310-9956-ffa450edef68
---
 src/site/apt/index.apt | 16 +++--------
 src/site/apt/usage.apt | 75 +++++++++++++++++++++++++++++++++++++++++++++-----
 src/site/fml/faq.fml   | 11 ++++----
 3 files changed, 77 insertions(+), 25 deletions(-)

diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
index 275dfd9..bb69d6a 100644
--- a/src/site/apt/index.apt
+++ b/src/site/apt/index.apt
@@ -8,23 +8,15 @@
 
 Maven 2 Invoker Plugin
 
-  This plugin is used to transform your development life. Don't bother with self-help
-  books on how to get over your build-time blues. Just use this plugin and
-  everything will miraculously change.
+ The invoker Plugin is used to run a set of Maven projects and makes sure that each
+ project execution is successful, and optionally verifies the output from a given project execution. 
 
 * Goals Overview
 
-  * {{{superduper-transform.html}superduper:transform}} performs the miraculous build transformation.
+  * {{{invoker-run.html}invoker:run}} runs a set of Maven projects that you have configured in your POM.
 
   []
 
 * Usage
 
-  Instructions on how to use the SuperDuper Plugin can be found {{{usage.html}here}}.
-
-* Examples
-
-  To provide you with better understanding of some usages of the SuperDuper Plugin,
-  you can take a look at the following examples:
-
-  * {{{examples/sample-example.html}Sample Example}}
+  Instructions on how to use the Invoker Plugin can be found {{{usage.html}here}}.
\ No newline at end of file
diff --git a/src/site/apt/usage.apt b/src/site/apt/usage.apt
index 9ebd6e8..d8c71ee 100644
--- a/src/site/apt/usage.apt
+++ b/src/site/apt/usage.apt
@@ -7,15 +7,76 @@
  ------
 
 Usage
-
- This plugin is used to create miraculously transform your build!
- 
-*How to miraculously transform your build
+  
+* How to use the invoker plugin
  
- Describe here how you miraculously transform peoples' builds! 
+ Below is an example of how the invoker plugin is used to test the maven-antrun-plugin. We are 
+ executing a set of Maven projects and ensuring everything is all right:
 
 -------------------
+<project>
+  ...
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-invoker-plugin</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <configuration>
+          <debug>true</debug>
+          <projectsDirectory>src/it</projectsDirectory>
+          <pomIncludes>
+            <pomInclude>**/pom.xml</pomInclude>
+          </pomIncludes>
+        </configuration>
+        <executions>
+          <execution>
+            <id>integration-test</id>
+            <phase>integration-test</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  ...
+</project>
+-------------------
 
-Put your awesome example here.
+ Here is an example of how the invoker plugin is used with the maven-assembly-plugin to run a set
+ of Maven projects and then verfier they output with a Beanshell script:
 
--------------------
\ No newline at end of file
+-------------------
+<project>
+  <build>
+    <plugins>
+      <plugin>                                                                                                                                                     
+        <artifactId>maven-invoker-plugin</artifactId>                                                                                                              
+        <configuration>                                                                                                                                            
+          <debug>true</debug>                                                                                                                                      
+          <projectsDirectory>src/it</projectsDirectory>                                                                                                            
+          <pomIncludes>                                                                                                                                            
+            <pomInclude>**/pom.xml</pomInclude>                                                                                                                    
+          </pomIncludes>                                                                                                                                           
+          <pomExcludes>                                                                                                                                            
+            <pomExclude>**/child*/pom.xml</pomExclude>                                                                                                             
+            <pomExclude>**/module*/pom.xml</pomExclude>                                                                                                            
+          </pomExcludes>                                                                                                                                           
+          <postBuildHookScript>verify.bsh</postBuildHookScript>                                                                                                    
+        </configuration>                                                                                                                                           
+        <executions>                                                                                                                                               
+          <execution>                                                                                                                                              
+            <id>integration-test</id>                                                                                                                              
+            <phase>integration-test</phase>                                                                                                                        
+            <goals>                                                                                                                                                
+              <goal>run</goal>                                                                                                                                     
+            </goals>                                                                                                                                               
+          </execution>                                                                                                                                             
+       </executions>                                                                                                                                               
+      </plugin>              
+    </plugins>
+  </build>          
+</project>          
+-------------------
+          
\ No newline at end of file
diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml
index b7c21ff..936fb32 100644
--- a/src/site/fml/faq.fml
+++ b/src/site/fml/faq.fml
@@ -24,12 +24,11 @@ under the License.
      <question>Why do I need to use this plugin?</question>
      <answer>
        <p>
-         This plugin greatly reduces the pain associated with consistent packaging concerns across
-         a large set of projects, or an entire organization. Any project can specify the use of a
-         remote resource bundle and have the resources incorporated into their packaging. This means
-         that you can create standard settings in a parent POM somewhere in the project hierarchy and
-         have all projects use package common resources in standard way like licenses, other legal 
-         notices and disclaimers, or anything else that may be common.
+         It is essential that you provide some form of integration testing for your projects and the Invoker Plugin
+         tries to make is easy for you to create integration tests for your Maven Plugins, new Lifecycles, or any other
+         type of Maven component that you've created. Currently the Invoker Plugin forks Maven to execute the specified
+         projects, but it is hoped that soon we will integrate the Maven Embedder into the mix to allow you run your
+         projects in process for great speed.
        </p>
      </answer>
    </faq>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 22/24: o udating the license headers

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit d7f13fd8b291ab45e5b6c340f328b2f374b6d2b6
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Jan 15 17:10:21 2007 +0000

    o udating the license headers
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@496409 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            | 19 +++++++++++++
 .../apache/maven/plugin/invoker/FileLogger.java    | 19 +++++++++++++
 .../apache/maven/plugin/invoker/InvokerMojo.java   | 25 +++++++++--------
 src/site/fml/faq.fml                               | 19 +++++++++++++
 src/site/site.xml                                  | 31 +++++++++++-----------
 test-with-goals-file/pom.xml                       | 19 +++++++++++++
 test-with-goals-file/src/it/test1/pom.xml          | 19 +++++++++++++
 7 files changed, 125 insertions(+), 26 deletions(-)

diff --git a/pom.xml b/pom.xml
index 674e9e3..76daf0e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,3 +1,22 @@
+<!--
+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: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' xmlns='http://maven.apache.org/POM/4.0.0'>
   <modelVersion>4.0.0</modelVersion>
   <parent>
diff --git a/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java b/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
index aa944f9..a025bf9 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
@@ -1,5 +1,24 @@
 package org.apache.maven.plugin.invoker;
 
+/*
+ * 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.logging.Log;
 import org.apache.maven.shared.invoker.InvocationOutputHandler;
 import org.codehaus.plexus.util.IOUtil;
diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index f3842cc..c5a3f68 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -1,19 +1,22 @@
 package org.apache.maven.plugin.invoker;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * 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
  *
- * Licensed 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
  *
- *      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.
+ * 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 bsh.EvalError;
diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml
index 936fb32..a2048fc 100644
--- a/src/site/fml/faq.fml
+++ b/src/site/fml/faq.fml
@@ -18,6 +18,25 @@ specific language governing permissions and limitations
 under the License.
 -->
 
+<!--
+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.
+-->
+
 <faqs id="FAQ" title="Frequently Asked Questions">
  <part id="General">
    <faq id="question1">
diff --git a/src/site/site.xml b/src/site/site.xml
index d538321..7332b52 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -1,21 +1,22 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
 <!--
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
+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>
diff --git a/test-with-goals-file/pom.xml b/test-with-goals-file/pom.xml
index de078fd..3fff2c4 100644
--- a/test-with-goals-file/pom.xml
+++ b/test-with-goals-file/pom.xml
@@ -1,3 +1,22 @@
+<!--
+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.
+-->
+
 <model
   xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/test-with-goals-file/src/it/test1/pom.xml b/test-with-goals-file/src/it/test1/pom.xml
index 47ec380..fb5015f 100644
--- a/test-with-goals-file/src/it/test1/pom.xml
+++ b/test-with-goals-file/src/it/test1/pom.xml
@@ -1,3 +1,22 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
 <project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.maven.plugins.it.tests</groupId>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 23/24: o fix reference

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 873778cfb7cda34933954db9497a0b1c0b786ef5
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Mon Jan 15 17:16:34 2007 +0000

    o fix reference
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@496410 13f79535-47bb-0310-9956-ffa450edef68
---
 src/site/apt/index.apt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
index fede332..c0b360a 100644
--- a/src/site/apt/index.apt
+++ b/src/site/apt/index.apt
@@ -13,7 +13,7 @@ Maven 2 Invoker Plugin
 
 * Goals Overview
 
-  * {{{plugin-run.html}invoker:run}} runs a set of Maven projects that you have configured in your POM.
+  * {{{run-mojo.html}invoker:run}} runs a set of Maven projects that you have configured in your POM.
 
   []
 

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 01/24: Initial pass at a maven-forking plugin...uses the maven-invoker API from maven/shared.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 840fd36a7fe127153be03e9df68baa6cc4d6128e
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Aug 8 15:23:32 2006 +0000

    Initial pass at a maven-forking plugin...uses the maven-invoker API from maven/shared.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@429687 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |  59 +++
 .../apache/maven/plugin/invoker/FileLogger.java    |  64 +++
 .../apache/maven/plugin/invoker/InvokerMojo.java   | 583 +++++++++++++++++++++
 test-with-goals-file/pom.xml                       |  29 +
 test-with-goals-file/src/it/test1/goals.txt        |   1 +
 test-with-goals-file/src/it/test1/pom.xml          |   6 +
 6 files changed, 742 insertions(+)

diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..d71967b
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,59 @@
+<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-plugin-parent</artifactId>
+    <groupId>org.apache.maven.plugins</groupId>
+    <version>2.0.1</version>
+  </parent>
+  <artifactId>maven-invoker-plugin</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+  <name>Maven Invoker Plugin</name>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.shared</groupId>
+      <artifactId>maven-invoker</artifactId>
+      <version>2.0.5-SNAPSHOT</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-core</artifactId>
+      <version>2.0</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact</artifactId>
+      <version>2.0</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.maven.shared</groupId>
+      <artifactId>file-management</artifactId>
+      <version>1.1-SNAPSHOT</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.maven.shared</groupId>
+      <artifactId>maven-shared-io</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.beanshell</groupId>
+      <artifactId>bsh</artifactId>
+      <version>2.0b4</version>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java b/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
new file mode 100644
index 0000000..40ae2f4
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugin/invoker/FileLogger.java
@@ -0,0 +1,64 @@
+package org.apache.maven.plugin.invoker;
+
+import org.apache.maven.shared.invoker.InvocationOutputHandler;
+import org.codehaus.plexus.util.IOUtil;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.PrintStream;
+
+public class FileLogger
+    implements InvocationOutputHandler
+{
+    
+    private PrintStream stream;
+    
+    private boolean shouldFinalize = true;
+    
+    public FileLogger( File outputFile )
+        throws IOException
+    {
+        stream = new PrintStream( new FileOutputStream( outputFile  ) );
+        
+        Runnable finalizer = new Runnable()
+        {
+            public void run()
+            {
+                try
+                {
+                    finalize();
+                }
+                catch ( Throwable e )
+                {
+                }
+            }
+        };
+        
+        Runtime.getRuntime().addShutdownHook( new Thread( finalizer ) );
+    }
+    
+    public PrintStream getPrintStream()
+    {
+        return stream;
+    }
+
+    public void consumeLine( String line )
+    {
+        stream.println( line );
+        stream.flush();
+    }
+    
+    public void close()
+    {
+        IOUtil.close( stream );
+    }
+    
+    public void finalize()
+    {
+        if ( shouldFinalize )
+        {
+            close();
+        }
+    }
+}
diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
new file mode 100644
index 0000000..91656ce
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -0,0 +1,583 @@
+package org.apache.maven.plugin.invoker;
+
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed 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 bsh.EvalError;
+import bsh.Interpreter;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.shared.invoker.DefaultInvocationRequest;
+import org.apache.maven.shared.invoker.InvocationRequest;
+import org.apache.maven.shared.invoker.InvocationResult;
+import org.apache.maven.shared.invoker.Invoker;
+import org.apache.maven.shared.invoker.MavenInvocationException;
+import org.apache.maven.shared.model.fileset.FileSet;
+import org.apache.maven.shared.model.fileset.util.FileSetManager;
+import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.cli.CommandLineException;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Properties;
+import java.util.StringTokenizer;
+
+/**
+ * Searches for integration test Maven projects, and executes each, collecting a log in the project directory, and
+ * outputting the results to the screen.
+ * 
+ * @goal run
+ * 
+ * @author <a href="mailto:kenney@apache.org">Kenney Westerhof</a>
+ * @author <a href="mailto:jdcasey@apache.org">John Casey</a>
+ */
+public class InvokerMojo
+    extends AbstractMojo
+{
+    /**
+     * The local repository for caching artifacts.
+     * 
+     * @parameter expression="${invoker.localRepositoryPath}"
+     */
+    private String localRepositoryPath;
+
+    /**
+     * Directory to search for integration tests.
+     * 
+     * @parameter expression="${invoker.projectsDirectory}" default-value="${basedir}/src/projects/"
+     */
+    private File projectsDirectory;
+
+    /**
+     * Includes for searching the integration test directory. This parameter is meant to be set from the POM.
+     * 
+     * @parameter
+     */
+    private List pomIncludes = Collections.singletonList( "*/pom.xml" );
+
+    /**
+     * Excludes for searching the integration test directory. This parameter is meant to be set from the POM.
+     * 
+     * @parameter
+     */
+    private List pomExcludes = Collections.EMPTY_LIST;
+
+    /**
+     * The comma-separated list of goals to execute on each project. Default is 'package'.
+     * 
+     * @parameter
+     */
+    private List goals = Collections.singletonList( "package" );
+
+    /**
+     * The name of the project-specific file that contains the enumeration of goals to execute for that test.
+     * 
+     * @parameter expression="${invoker.goalsFile}" default-value="goals.txt"
+     */
+    private String goalsFile;
+
+    /**
+     * @component
+     */
+    private Invoker invoker;
+
+    /**
+     * relative path of a pre-build hook beanshell script to run prior to executing the build.
+     * 
+     * @parameter expression="${invoker.preBuildHookScript}" default-value="prebuild.bsh"
+     */
+    private String preBuildHookScript;
+
+    /**
+     * relative path of a verification beanshell script to run after executing the build.
+     * 
+     * @parameter expression="${invoker.verificationScript}" default-value="verify.bsh"
+     */
+    private String verificationScript;
+
+    /**
+     * Location of a properties file that defines CLI properties for the test.
+     * 
+     * @parameter expression="${invoker.testPropertiesFile}" default-value="test.properties"
+     */
+    private String testPropertiesFile;
+
+    /**
+     * Whether to show errors in the build output.
+     * 
+     * @parameter expression="${invoker.showErrors}" default-value="false"
+     */
+    private boolean showErrors;
+
+    /**
+     * Whether to show debug statements in the build output.
+     * 
+     * @parameter expression="${invoker.debug}" default-value="false"
+     */
+    private boolean debug;
+
+    /**
+     * Suppress logging to the build.log file.
+     * 
+     * @parameter expression="${invoker.noLog}" default-value="false"
+     */
+    private boolean noLog;
+
+    public void execute()
+        throws MojoExecutionException, MojoFailureException
+    {
+        String[] includedPoms;
+        try
+        {
+            includedPoms = getPoms();
+        }
+        catch ( final IOException e )
+        {
+            throw new MojoExecutionException( "Error retrieving POM list from includes, excludes, "
+                            + "and IT directory. Reason: " + e.getMessage(), e );
+        }
+
+        if ( includedPoms == null || includedPoms.length < 1 )
+        {
+            getLog().info( "No test-projects were selected for execution." );
+            return;
+        }
+
+        final List failures = new ArrayList();
+
+        for ( int i = 0; i < includedPoms.length; i++ )
+        {
+            final String pom = includedPoms[i];
+
+            runBuild( pom, failures );
+        }
+
+        final StringBuffer summary = new StringBuffer();
+        summary.append( "\n\n" );
+        summary.append( "---------------------------------------\n" );
+        summary.append( "Execution Summary:\n" );
+        summary.append( "Builds Passing: " ).append( includedPoms.length - failures.size() ).append( "\n" );
+        summary.append( "Builds Failing: " ).append( failures.size() ).append( "\n" );
+        summary.append( "---------------------------------------\n" );
+
+        if ( !failures.isEmpty() )
+        {
+            summary.append( "\nThe following builds failed:\n" );
+
+            for ( final Iterator it = failures.iterator(); it.hasNext(); )
+            {
+                final String pom = ( String ) it.next();
+                summary.append( "\n*  " ).append( pom );
+            }
+
+            summary.append( "\n" );
+        }
+
+        getLog().info( summary.toString() );
+
+        if ( !failures.isEmpty() )
+        {
+            throw new MojoFailureException( this, "One or more builds failed.", failures.size() + " builds failed." );
+        }
+    }
+
+    private void runBuild( final String pom, final List failures )
+        throws MojoExecutionException
+    {
+        final File pomFile = new File( projectsDirectory, pom );
+        final File basedir = pomFile.getParentFile();
+
+        getLog().info( "Building: " + basedir );
+
+        final File outputLog = new File( basedir, "target/build.log" );
+
+        FileLogger logger = null;
+
+        try
+        {
+            if ( !noLog )
+            {
+                outputLog.getParentFile().mkdirs();
+
+                try
+                {
+                    logger = new FileLogger( outputLog );
+                    
+                    getLog().debug( "build log initialized in: " + outputLog );
+                }
+                catch ( final IOException e )
+                {
+                    getLog().debug( "Error initializing build logfile in: " + outputLog, e );
+                    getLog().info( "...FAILED[could not initialize logfile in: " + outputLog );
+
+                    failures.add( pom );
+
+                    return;
+                }
+            }
+
+            if ( !prebuild( basedir, pom, failures, logger ) )
+            {
+                getLog().info( "...FAILED[pre-build script returned false]" );
+
+                failures.add( pom );
+
+                return;
+            }
+
+            final List invocationGoals = getGoals( basedir );
+
+            final InvocationRequest request = new DefaultInvocationRequest();
+
+            if ( invocationGoals.size() == 1 && "_default".equals( invocationGoals.get( 0 ) ) )
+            {
+                getLog().debug( "Executing default goal for project in: " + pom );
+            }
+            else
+            {
+                getLog().debug( "Executing goals: " + invocationGoals + " for project in: " + pom );
+
+                request.setGoals( invocationGoals );
+            }
+
+            try
+            {
+                final Properties testProperties = loadTestProperties( basedir );
+
+                request.setProperties( testProperties );
+            }
+            catch ( final IOException e )
+            {
+                getLog().debug( "Error reading test-properties file in: " + testPropertiesFile, e );
+                getLog().info( "...FAILED[error reading test properties in: " + testPropertiesFile );
+
+                failures.add( pom );
+
+                return;
+            }
+
+            if ( localRepositoryPath != null )
+            {
+                File localRepoDir = new File( localRepositoryPath );
+
+                if ( !localRepoDir.isAbsolute() )
+                {
+                    localRepoDir = new File( basedir, localRepositoryPath );
+                }
+
+                getLog().debug( "Using local repository: " + localRepoDir );
+
+                request.setLocalRepositoryDirectory( localRepoDir );
+            }
+
+            request.setInteractive( false );
+
+            request.setShowErrors( showErrors );
+
+            request.setDebug( debug );
+            
+            request.setBaseDirectory( basedir );
+
+            if ( !noLog )
+            {
+                request.setErrorHandler( logger );
+
+                request.setOutputHandler( logger );
+            }
+
+            request.setPomFile( pomFile );
+
+            InvocationResult result = null;
+
+            try
+            {
+                result = invoker.execute( request );
+            }
+            catch ( final MavenInvocationException e )
+            {
+                getLog().debug( "Error invoking Maven: " + e.getMessage(), e );
+                getLog().info( "...FAILED[error invoking Maven]" );
+
+                failures.add( pom );
+            }
+
+            final CommandLineException executionException = result.getExecutionException();
+
+            if ( executionException != null )
+            {
+                getLog().info( "...FAILED. See " + outputLog.getAbsolutePath() + " for details." );
+                failures.add( pom );
+            }
+            else if ( result.getExitCode() != 0 )
+            {
+                getLog().info(
+                                "...FAILED[code=" + result.getExitCode() + "]. See " + outputLog.getAbsolutePath()
+                                                + " for details." );
+
+                failures.add( pom );
+            }
+            else if ( !verify( basedir, pom, failures, logger ) )
+            {
+                getLog().info( "...FAILED[verify script returned false]." );
+
+                failures.add( pom );
+            }
+            else
+            {
+                getLog().info( "...SUCCESS." );
+            }
+        }
+        finally
+        {
+            if ( logger != null )
+            {
+                logger.close();
+            }
+        }
+    }
+
+    private Properties loadTestProperties( final File basedir )
+        throws IOException
+    {
+        final File testProperties = new File( basedir, testPropertiesFile );
+
+        final Properties testProps = new Properties();
+
+        if ( testProperties.exists() )
+        {
+            FileInputStream fin = null;
+            try
+            {
+                fin = new FileInputStream( testProperties );
+
+                testProps.load( fin );
+            }
+            finally
+            {
+                IOUtil.close( fin );
+            }
+        }
+
+        return testProps;
+    }
+
+    private boolean verify( final File basedir, final String pom, final List failures, final FileLogger logger )
+    {
+        boolean result = true;
+
+        if ( verificationScript != null )
+        {
+            try
+            {
+                result = runScript( "verification script", basedir, verificationScript, logger );
+            }
+            catch ( final IOException e )
+            {
+                result = false;
+                failures.add( pom );
+            }
+            catch ( final EvalError e )
+            {
+                result = false;
+                failures.add( pom );
+            }
+        }
+
+        return result;
+    }
+
+    private boolean runScript( final String scriptDescription, final File basedir, final String relativeScriptPath,
+                               final FileLogger logger )
+        throws IOException, EvalError
+    {
+        final File script = new File( basedir, relativeScriptPath );
+
+        boolean scriptResult = false;
+
+        if ( script.exists() )
+        {
+            final Interpreter engine = new Interpreter();
+
+            if ( !noLog )
+            {
+                logger.consumeLine( "Running " + scriptDescription + " in: " + script );
+
+                engine.setErr( logger.getPrintStream() );
+                engine.setOut( logger.getPrintStream() );
+            }
+
+            FileReader reader = null;
+            try
+            {
+                engine.set( "basedir", basedir );
+
+                reader = new FileReader( script );
+
+                final Object result = engine.eval( reader );
+
+                scriptResult = Boolean.TRUE.equals( result ) || "true".equals( result );
+            }
+            finally
+            {
+                IOUtil.close( reader );
+            }
+
+            if ( !noLog )
+            {
+                logger.consumeLine( "Finished " + scriptDescription + " in: " + script );
+            }
+        }
+        else
+        {
+            scriptResult = true;
+        }
+
+        return scriptResult;
+    }
+
+    private boolean prebuild( final File basedir, final String pom, final List failures, final FileLogger logger )
+    {
+        boolean result = true;
+
+        if ( preBuildHookScript != null )
+        {
+            try
+            {
+                result = runScript( "pre-build script", basedir, preBuildHookScript, logger );
+            }
+            catch ( final IOException e )
+            {
+                result = false;
+                failures.add( pom );
+            }
+            catch ( final EvalError e )
+            {
+                result = false;
+                failures.add( pom );
+            }
+        }
+
+        return result;
+    }
+
+    private List getGoals( final File basedir )
+    {
+        List invocationGoals = goals;
+
+        if ( goalsFile != null )
+        {
+            final File projectGoalList = new File( basedir, goalsFile );
+
+            if ( projectGoalList.exists() )
+            {
+                final List goals = readFromFile( projectGoalList );
+
+                if ( goals != null && !goals.isEmpty() )
+                {
+                    getLog().info( "Using goals specified in file: " + projectGoalList );
+                    invocationGoals = goals;
+                }
+            }
+        }
+
+        return invocationGoals;
+    }
+
+    private String[] getPoms()
+        throws IOException
+    {
+        final FileSet fs = new FileSet();
+
+        fs.setIncludes( pomIncludes );
+        fs.setExcludes( pomExcludes );
+        fs.setDirectory( projectsDirectory.getCanonicalPath() );
+        fs.setFollowSymlinks( false );
+        fs.setUseDefaultExcludes( false );
+
+        final FileSetManager fsm = new FileSetManager( getLog() );
+
+        return fsm.getIncludedFiles( fs );
+    }
+
+    private List readFromFile( final File projectGoalList )
+    {
+        BufferedReader reader = null;
+
+        List result = null;
+
+        try
+        {
+            reader = new BufferedReader( new FileReader( projectGoalList ) );
+
+            result = new ArrayList();
+
+            String line = null;
+            while ( ( line = reader.readLine() ) != null )
+            {
+                result.addAll( collectListFromCSV( line ) );
+            }
+        }
+        catch ( final IOException e )
+        {
+            getLog().warn(
+                           "Failed to load goal list from file: " + projectGoalList
+                                           + ". Using 'goal' parameter configured on this plugin instead." );
+            getLog().debug( "Error reading goals file: " + projectGoalList, e );
+        }
+        finally
+        {
+            if ( reader != null )
+            {
+                try
+                {
+                    reader.close();
+                }
+                catch ( final IOException e )
+                {
+                }
+            }
+        }
+
+        return result;
+    }
+
+    private List collectListFromCSV( final String csv )
+    {
+        final List result = new ArrayList();
+
+        if ( csv != null && csv.trim().length() > 0 )
+        {
+            final StringTokenizer st = new StringTokenizer( csv, "," );
+
+            while ( st.hasMoreTokens() )
+            {
+                result.add( st.nextToken().trim() );
+            }
+        }
+
+        return result;
+    }
+
+}
diff --git a/test-with-goals-file/pom.xml b/test-with-goals-file/pom.xml
new file mode 100644
index 0000000..de078fd
--- /dev/null
+++ b/test-with-goals-file/pom.xml
@@ -0,0 +1,29 @@
+<model
+  xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>it-plugin-test</artifactId>
+  <version>1.0-alpha-1-SNAPSHOT</version>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-invoker-plugin</artifactId>
+        <configuration>
+          <projectsDirectory>src/it</projectsDirectory>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>integration-test</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</model>
diff --git a/test-with-goals-file/src/it/test1/goals.txt b/test-with-goals-file/src/it/test1/goals.txt
new file mode 100644
index 0000000..582d972
--- /dev/null
+++ b/test-with-goals-file/src/it/test1/goals.txt
@@ -0,0 +1 @@
+compile
diff --git a/test-with-goals-file/src/it/test1/pom.xml b/test-with-goals-file/src/it/test1/pom.xml
new file mode 100644
index 0000000..47ec380
--- /dev/null
+++ b/test-with-goals-file/src/it/test1/pom.xml
@@ -0,0 +1,6 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.plugins.it.tests</groupId>
+  <artifactId>test1</artifactId>
+  <version>1.0</version>
+</project>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 02/24: changing pom to use new parent, and added sysout/syserr handling for scripts.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 9545d355ef3aac1cf185ec20852d591657985159
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Aug 8 22:24:06 2006 +0000

    changing pom to use new parent, and added sysout/syserr handling for scripts.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@429859 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |  4 ++--
 .../apache/maven/plugin/invoker/InvokerMojo.java   | 25 +++++++++++++++-------
 2 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/pom.xml b/pom.xml
index d71967b..7162b00 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,9 +5,9 @@
 >
   <modelVersion>4.0.0</modelVersion>
   <parent>
-    <artifactId>maven-plugin-parent</artifactId>
+    <artifactId>maven-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>2.0.1</version>
+    <version>2-SNAPSHOT</version>
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>
diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index 91656ce..685cc73 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -37,6 +37,7 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileReader;
 import java.io.IOException;
+import java.io.PrintStream;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Iterator;
@@ -420,17 +421,23 @@ public class InvokerMojo
         {
             final Interpreter engine = new Interpreter();
 
-            if ( !noLog )
-            {
-                logger.consumeLine( "Running " + scriptDescription + " in: " + script );
-
-                engine.setErr( logger.getPrintStream() );
-                engine.setOut( logger.getPrintStream() );
-            }
-
+            PrintStream origOut = System.out;
+            PrintStream origErr = System.err;
+            
             FileReader reader = null;
             try
             {
+                if ( !noLog )
+                {
+                    logger.consumeLine( "Running " + scriptDescription + " in: " + script );
+
+                    System.setErr( logger.getPrintStream() );
+                    System.setOut( logger.getPrintStream() );
+                    
+                    engine.setErr( logger.getPrintStream() );
+                    engine.setOut( logger.getPrintStream() );
+                }
+
                 engine.set( "basedir", basedir );
 
                 reader = new FileReader( script );
@@ -442,6 +449,8 @@ public class InvokerMojo
             finally
             {
                 IOUtil.close( reader );
+                System.setErr( origErr );
+                System.setOut( origOut );
             }
 
             if ( !noLog )

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 18/24: o updating to latest released parent

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 65bf500349888de67415921629f046dff5a1589a
Author: Jason van Zyl <jv...@apache.org>
AuthorDate: Tue Dec 26 04:31:11 2006 +0000

    o updating to latest released parent
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@490247 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/pom.xml b/pom.xml
index d368d93..18642aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,12 +1,9 @@
-<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">
+<project 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' xmlns='http://maven.apache.org/POM/4.0.0'>
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <artifactId>maven-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>4</version>
+    <version>7</version>
   </parent>
   <artifactId>maven-invoker-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>
@@ -19,7 +16,7 @@
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-invoker</artifactId>
-      <version>2.0.5</version>
+      <version>2.0.6-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
@@ -39,12 +36,12 @@
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>file-management</artifactId>
-      <version>1.1</version>
+      <version>1.2-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-io</artifactId>
-      <version>1.0</version>
+      <version>1.1-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.beanshell</groupId>
@@ -53,3 +50,4 @@
     </dependency>
   </dependencies>
 </project>
+

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 04/24: Cleaning up output and fixing single-pom override parameter.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 444329bc01b07942ee2bc771afc5cbe14e286e0c
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Fri Aug 11 18:59:44 2006 +0000

    Cleaning up output and fixing single-pom override parameter.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@430859 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/maven/plugin/invoker/InvokerMojo.java | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index dff9799..8b5b288 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -29,7 +29,6 @@ import org.apache.maven.shared.invoker.Invoker;
 import org.apache.maven.shared.invoker.MavenInvocationException;
 import org.apache.maven.shared.model.fileset.FileSet;
 import org.apache.maven.shared.model.fileset.util.FileSetManager;
-import org.apache.maven.wagon.PathUtils;
 import org.codehaus.plexus.util.IOUtil;
 import org.codehaus.plexus.util.cli.CommandLineException;
 
@@ -215,10 +214,16 @@ public class InvokerMojo
     private void runBuild( final String pom, final List failures )
         throws MojoExecutionException
     {
-        final File pomFile = new File( projectsDirectory, pom );
+        File pomFile = new File( pom );
+        
+        if ( !pomFile.isAbsolute() )
+        {
+            pomFile = new File( projectsDirectory, pom );
+        }
+        
         final File basedir = pomFile.getParentFile();
 
-        getLog().info( "Building: " + basedir );
+        getLog().info( "Building: " + pom );
 
         final File outputLog = new File( basedir, "target/build.log" );
 
@@ -513,7 +518,7 @@ public class InvokerMojo
 
                 if ( goals != null && !goals.isEmpty() )
                 {
-                    getLog().info( "Using goals specified in file: " + projectGoalList );
+                    getLog().debug( "Using goals specified in file: " + projectGoalList );
                     invocationGoals = goals;
                 }
             }
@@ -527,7 +532,7 @@ public class InvokerMojo
     {
         if ( pom != null && pom.exists() )
         {
-            return new String[]{ PathUtils.toRelative( projectsDirectory, pom.getAbsolutePath() ) };
+            return new String[]{ pom.getAbsolutePath() };
         }
         else
         {

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 17/24: Adding parameters to suppress summary and inject global test properties for all IT builds.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 59a22b7a2765a7a3782376aae46b5d078201d3e9
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Dec 19 17:41:38 2006 +0000

    Adding parameters to suppress summary and inject global test properties for all IT builds.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@488736 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/maven/plugin/invoker/InvokerMojo.java   | 91 ++++++++++++++++------
 1 file changed, 66 insertions(+), 25 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index 3eff874..f3842cc 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -58,6 +58,16 @@ public class InvokerMojo
     extends AbstractMojo
 {
     /**
+     * Flag used to suppress the summary output notifying of successes and failures. If set to true,
+     * the only indication of the build's success or failure will be the effect it has on the main
+     * build (if it fails, the main build should fail as well). If streamLogs is enabled, the sub-build
+     * summary will also provide an indication. By default, this parameter is set to false.
+     * 
+     * @parameter default-value="false"
+     */
+    private boolean suppressSummaries;
+    
+    /**
      * Flag used to determine whether the build logs should be output to the normal mojo log.
      * 
      * @parameter expression="${invoker.streamLogs}" default-value="false"
@@ -138,6 +148,13 @@ public class InvokerMojo
      * @parameter expression="${invoker.testPropertiesFile}" default-value="test.properties"
      */
     private String testPropertiesFile;
+    
+    /**
+     * Common set of test properties to pass in on each IT's command line, via -D parameters.
+     * 
+     * @parameter
+     */
+    private Properties testProperties;
 
     /**
      * Whether to show errors in the build output.
@@ -189,29 +206,32 @@ public class InvokerMojo
             runBuild( pom, failures );
         }
 
-        final StringBuffer summary = new StringBuffer();
-        summary.append( "\n\n" );
-        summary.append( "---------------------------------------\n" );
-        summary.append( "Execution Summary:\n" );
-        summary.append( "Builds Passing: " ).append( includedPoms.length - failures.size() ).append( "\n" );
-        summary.append( "Builds Failing: " ).append( failures.size() ).append( "\n" );
-        summary.append( "---------------------------------------\n" );
-
-        if ( !failures.isEmpty() )
+        if ( !suppressSummaries )
         {
-            summary.append( "\nThe following builds failed:\n" );
-
-            for ( final Iterator it = failures.iterator(); it.hasNext(); )
+            final StringBuffer summary = new StringBuffer();
+            summary.append( "\n\n" );
+            summary.append( "---------------------------------------\n" );
+            summary.append( "Execution Summary:\n" );
+            summary.append( "Builds Passing: " ).append( includedPoms.length - failures.size() ).append( "\n" );
+            summary.append( "Builds Failing: " ).append( failures.size() ).append( "\n" );
+            summary.append( "---------------------------------------\n" );
+
+            if ( !failures.isEmpty() )
             {
-                final String pom = ( String ) it.next();
-                summary.append( "\n*  " ).append( pom );
+                summary.append( "\nThe following builds failed:\n" );
+
+                for ( final Iterator it = failures.iterator(); it.hasNext(); )
+                {
+                    final String pom = ( String ) it.next();
+                    summary.append( "\n*  " ).append( pom );
+                }
+
+                summary.append( "\n" );
             }
 
-            summary.append( "\n" );
+            getLog().info( summary.toString() );
         }
 
-        getLog().info( summary.toString() );
-
         if ( !failures.isEmpty() )
         {
             throw new MojoFailureException( this, "One or more builds failed.", failures.size() + " builds failed." );
@@ -292,9 +312,21 @@ public class InvokerMojo
 
             try
             {
-                final Properties testProperties = loadTestProperties( basedir );
+                Properties collectedTestProperties = new Properties();
+                
+                if ( testProperties != null )
+                {
+                    collectedTestProperties.putAll( testProperties );
+                }
+                
+                final Properties loadedProperties = loadTestProperties( basedir );
+                
+                if ( loadedProperties != null )
+                {
+                    collectedTestProperties.putAll( loadedProperties );
+                }
 
-                request.setProperties( testProperties );
+                request.setProperties( collectedTestProperties );
             }
             catch ( final IOException e )
             {
@@ -355,24 +387,33 @@ public class InvokerMojo
 
             if ( executionException != null )
             {
-                getLog().info( "...FAILED. See " + outputLog.getAbsolutePath() + " for details." );
+                if ( !suppressSummaries )
+                {
+                    getLog().info( "...FAILED. See " + outputLog.getAbsolutePath() + " for details." );
+                }
                 failures.add( pom );
             }
             else if ( result.getExitCode() != 0 )
             {
-                getLog().info(
-                                "...FAILED[code=" + result.getExitCode() + "]. See " + outputLog.getAbsolutePath()
-                                                + " for details." );
+                if ( !suppressSummaries )
+                {
+                    getLog().info(
+                                   "...FAILED[code=" + result.getExitCode() + "]. See " + outputLog.getAbsolutePath()
+                                       + " for details." );
+                }
 
                 failures.add( pom );
             }
             else if ( !verify( basedir, pom, failures, logger ) )
             {
-                getLog().info( "...FAILED[verify script returned false]." );
+                if ( !suppressSummaries )
+                {
+                    getLog().info( "...FAILED[verify script returned false]." );
+                }
 
                 failures.add( pom );
             }
-            else
+            else if (!suppressSummaries )
             {
                 getLog().info( "...SUCCESS." );
             }

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.

[maven-invoker-plugin] 09/24: MNG-2587: [maven-invoker-plugin] build.log file should not be placed inside the target/ directory

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 610c6544af783a1364afffb25aa16a23411ea1cb
Author: Vincent Massol <vm...@apache.org>
AuthorDate: Tue Oct 3 15:05:51 2006 +0000

    MNG-2587: [maven-invoker-plugin] build.log file should not be placed inside the target/ directory
    
    The build.log file is now created in the project's top level dir (next to pom.xml). Another solution would be to create those build.log files in the calling project's target dir and name them with some unique name pointing to the project they're logging...
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin@452524 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index 236436b..3eff874 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -232,7 +232,7 @@ public class InvokerMojo
 
         getLog().info( "Building: " + pom );
 
-        final File outputLog = new File( basedir, "target/build.log" );
+        final File outputLog = new File( basedir, "build.log" );
 
         FileLogger logger = null;
 

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.