New goals eclipse:multiproject and eclipse:multiclean
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@479820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -30,4 +30,12 @@ maven.eclipse.src.extension = zip
|
||||
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
|
||||
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=
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -125,7 +125,7 @@ ${your eclipse workspace}/.metadata/.plugins/org.eclipse.debug.core/.launches/
|
||||
</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 @@ ${your eclipse workspace}/.metadata/.plugins/org.eclipse.debug.core/.launches/
|
||||
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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user