You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ah...@apache.org on 2006/11/28 01:14:32 UTC
svn commit: r479820 - in /maven/maven-1/plugins/trunk/eclipse: plugin.jelly
plugin.properties project.xml xdocs/changes.xml xdocs/goals.xml
xdocs/properties.xml
Author: aheritier
Date: Mon Nov 27 16:14:31 2006
New Revision: 479820
URL: http://svn.apache.org/viewvc?view=rev&rev=479820
Log:
New goals eclipse:multiproject and eclipse:multiclean
Modified:
maven/maven-1/plugins/trunk/eclipse/plugin.jelly
maven/maven-1/plugins/trunk/eclipse/plugin.properties
maven/maven-1/plugins/trunk/eclipse/project.xml
maven/maven-1/plugins/trunk/eclipse/xdocs/changes.xml
maven/maven-1/plugins/trunk/eclipse/xdocs/goals.xml
maven/maven-1/plugins/trunk/eclipse/xdocs/properties.xml
Modified: maven/maven-1/plugins/trunk/eclipse/plugin.jelly
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/eclipse/plugin.jelly?view=diff&rev=479820&r1=479819&r2=479820
==============================================================================
--- maven/maven-1/plugins/trunk/eclipse/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/eclipse/plugin.jelly Mon Nov 27 16:14:31 2006
@@ -315,4 +315,43 @@
<ant:echo>Cleaned up eclipse generated files</ant:echo>
</goal>
+ <goal name="eclipse:multi-init" description="Initialize multiproject settings">
+ <j:if test="${!init_already_executed}">
+ <!-- Default reactor properties from the Multiproject plug-in -->
+ <!-- Make sure the multiproject plugin is loaded -->
+ <maven:set plugin="maven-multiproject-plugin" property="foo" value="bar"/>
+ <maven:get var="mBasedir" property="maven.multiproject.basedir" plugin="maven-multiproject-plugin"/>
+ <maven:property var="dBasedir" name="maven.eclipse.multiproject.basedir" defaultValue="${mBasedir}"/>
+ <maven:get var="mIncludes" property="maven.multiproject.includes" plugin="maven-multiproject-plugin"/>
+ <maven:property var="dIncludes" name="maven.eclipse.multiproject.includes" defaultValue="${mIncludes}"/>
+ <maven:get var="mExcludes" property="maven.multiproject.excludes" plugin="maven-multiproject-plugin"/>
+ <maven:property var="dExcludes" name="maven.eclipse.multiproject.excludes" defaultValue="${mExcludes}"/>
+ <maven:get var="mIgnoreFailures" property="maven.multiproject.ignoreFailures" plugin="maven-multiproject-plugin"/>
+ <maven:property var="dIgnoreFailures" name="maven.eclipse.multiproject.ignoreFailures" defaultValue="${mIgnoreFailures}"/>
+ <j:set var="init_already_executed" value="true"/>
+ </j:if>
+ </goal>
+
+ <goal name="eclipse:multiproject" description="Launch the eclipse goal in a multiproject context" prereqs="eclipse:multi-init">
+ <maven:reactor
+ basedir="${mBasedir}"
+ banner="Creating eclipse settings for : "
+ includes="${mIncludes}"
+ excludes="${mExcludes}"
+ postProcessing="true"
+ goals="eclipse"
+ ignoreFailures="${mIgnoreFailures}"/>
+ </goal>
+
+ <goal name="eclipse:multiclean" description="Launch the eclipse:clean goal in a multiproject context" prereqs="eclipse:multi-init">
+ <maven:reactor
+ basedir="${mBasedir}"
+ banner="Deleting eclipse settings for :"
+ includes="${mIncludes}"
+ excludes="${mExcludes}"
+ postProcessing="true"
+ goals="eclipse:clean"
+ ignoreFailures="${mIgnoreFailures}"/>
+ </goal>
+
</project>
Modified: maven/maven-1/plugins/trunk/eclipse/plugin.properties
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/eclipse/plugin.properties?view=diff&rev=479820&r1=479819&r2=479820
==============================================================================
--- maven/maven-1/plugins/trunk/eclipse/plugin.properties (original)
+++ maven/maven-1/plugins/trunk/eclipse/plugin.properties Mon Nov 27 16:14:31 2006
@@ -30,4 +30,12 @@
maven.eclipse.src.download = true
maven.eclipse.javadoc.download = true
maven.eclipse.resources.addtoclasspath=false
-maven.eclipse.servletapilist=javax.servlet:servlet-api,servletapi:servletapi,geronimo-spec:geronimo-spec-servlet
\ No newline at end of file
+maven.eclipse.servletapilist=javax.servlet:servlet-api,servletapi:servletapi,geronimo-spec:geronimo-spec-servlet
+
+# Location of subprojects to include in the multichanges report. By default
+# these properties have the same values as their multiproject conterpart.
+# You can define them if you need to set different values.
+#maven.eclipse.multiproject.basedir=
+#maven.eclipse.multiproject.includes=
+#maven.eclipse.multiproject.excludes=
+#maven.eclipse.multiproject.ignoreFailures=
Modified: maven/maven-1/plugins/trunk/eclipse/project.xml
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/eclipse/project.xml?view=diff&rev=479820&r1=479819&r2=479820
==============================================================================
--- maven/maven-1/plugins/trunk/eclipse/project.xml (original)
+++ maven/maven-1/plugins/trunk/eclipse/project.xml Mon Nov 27 16:14:31 2006
@@ -122,6 +122,16 @@
</roles>
<timezone>+1</timezone>
</developer>
+ <developer>
+ <name>Arnaud Heritier</name>
+ <id>aheritier</id>
+ <email>aheritier@apache.org</email>
+ <organization>ASF</organization>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>+1</timezone>
+ </developer>
</developers>
<dependencies>
<dependency>
Modified: maven/maven-1/plugins/trunk/eclipse/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/eclipse/xdocs/changes.xml?view=diff&rev=479820&r1=479819&r2=479820
==============================================================================
--- maven/maven-1/plugins/trunk/eclipse/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/eclipse/xdocs/changes.xml Mon Nov 27 16:14:31 2006
@@ -24,6 +24,8 @@
</properties>
<body>
<release version="1.11.1-SNAPSHOT" date="In SVN">
+ <action dev="aheritier" type="add">New goal eclipse:multiclean</action>
+ <action dev="aheritier" type="add">New goal eclipse:multiproject</action>
<action dev="aheritier" type="update" issue="MAVEN-1769">Upgrade maven-model to version 3.0.2</action>
<action dev="snicoll" type="update" issue="MPECLIPSE-109" due-to="Gilles Dodinet">Updated FAQ with multiproject entries.</action>
<action dev="snicoll" type="fix" issue="MPECLIPSE-119">Fixed broken test cases.</action>
Modified: maven/maven-1/plugins/trunk/eclipse/xdocs/goals.xml
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/eclipse/xdocs/goals.xml?view=diff&rev=479820&r1=479819&r2=479820
==============================================================================
--- maven/maven-1/plugins/trunk/eclipse/xdocs/goals.xml (original)
+++ maven/maven-1/plugins/trunk/eclipse/xdocs/goals.xml Mon Nov 27 16:14:31 2006
@@ -125,7 +125,7 @@
</goal>
<goal>
- <name>eclipse:add-maven-repo<a name="eclipse:add-maven-repo" /></name>
+ <name>eclipse:add-maven-repo</name>
<description>
Ensures that the classpath variable <code>MAVEN_REPO</code>
exists in the Eclipse environment.
@@ -135,6 +135,25 @@
Eclipse must not be running.
</description>
</goal>
+
+ <goal>
+ <name>eclipse:multiproject</name>
+ <description>
+ Launch the eclipse goal in a multiproject environment.
+ <br />
+ The properties <a href="properties.html">${maven.eclipse.multiproject.basedir}, ${maven.eclipse.multiproject.ignoreFailures}, ${maven.eclipse.multiproject.includes}, ${maven.eclipse.multiproject.excludes}</a> are used to customize the behaviour of this goal.
+ </description>
+ </goal>
+
+ <goal>
+ <name>eclipse:multiclean</name>
+ <description>
+ Launch the eclipse:clean goal in a multiproject environment.
+ <br />
+ The properties <a href="properties.html">${maven.eclipse.multiproject.basedir}, ${maven.eclipse.multiproject.ignoreFailures}, ${maven.eclipse.multiproject.includes}, ${maven.eclipse.multiproject.excludes}</a> are used to customize the behaviour of this goal.
+ </description>
+ </goal>
+
</goals>
</body>
</document>
Modified: maven/maven-1/plugins/trunk/eclipse/xdocs/properties.xml
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/eclipse/xdocs/properties.xml?view=diff&rev=479820&r1=479819&r2=479820
==============================================================================
--- maven/maven-1/plugins/trunk/eclipse/xdocs/properties.xml (original)
+++ maven/maven-1/plugins/trunk/eclipse/xdocs/properties.xml Mon Nov 27 16:14:31 2006
@@ -159,6 +159,61 @@
remote repositories, when no source archive is available. Defaults to true.
</td>
</tr>
+
+ <tr>
+ <td>maven.eclipse.multiproject.basedir</td>
+ <td>Yes</td>
+ <td>
+ <p>
+ This is the base directory that the plugin will use when searching for
+ projects to be processed. It is also the 'current directory' for relative paths
+ </p>
+ <p>
+ Default value is <code>${maven.multiproject.basedir}</code>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td>maven.eclipse.multiproject.ignoreFailures</td>
+ <td>Yes</td>
+ <td>
+ <p>
+ Set this to true to allow the plugin to continue
+ when any project fails during processing.
+ </p>
+ <p>
+ Default value is <code>${maven.multiproject.ignoreFailures}</code>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td>maven.eclipse.multiproject.includes</td>
+ <td>Yes</td>
+ <td>
+ <p>
+ This is the list of file specifications to be included when searching for
+ projects to be processed by the plugin.
+ </p>
+ <strong>
+ The 'top-level' project that you use to run <code>maven eclipse:multiproject</code>
+ must not be included in the set of projects to be processed.
+ </strong>
+ <p>
+ Default value is <code>${maven.multiproject.includes}</code>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td>maven.eclipse.multiproject.excludes</td>
+ <td>Yes</td>
+ <td>
+ <p>
+ This is the list of file specifications to be excluded when searching for
+ projects to be processed by the plugin
+ </p>
+ <p>Default value is <code>${maven.multiproject.excludes}</code>.</p>
+ </td>
+ </tr>
</table>
<p>
Note that you will need to defined a <code>MAVEN_REPO</code> Java