You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2005/11/23 00:10:39 UTC
svn commit: r348283 - in /maven/maven-1/plugins/trunk/multiproject:
plugin.jelly xdocs/changes.xml xdocs/faq.fml
Author: ltheussl
Date: Tue Nov 22 15:10:35 2005
New Revision: 348283
URL: http://svn.apache.org/viewcvs?rev=348283&view=rev
Log:
PR: MPMULTIPROJECT-58
Submitted by: Lucas Persson
Possibility to re-execute multiproject:projects-init
Modified:
maven/maven-1/plugins/trunk/multiproject/plugin.jelly
maven/maven-1/plugins/trunk/multiproject/xdocs/changes.xml
maven/maven-1/plugins/trunk/multiproject/xdocs/faq.fml
Modified: maven/maven-1/plugins/trunk/multiproject/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/multiproject/plugin.jelly?rev=348283&r1=348282&r2=348283&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/multiproject/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/multiproject/plugin.jelly Tue Nov 22 15:10:35 2005
@@ -48,7 +48,7 @@
<!-- which just need the list of project but don't need to run any goal -->
<!--======================================================================-->
<goal name="multiproject:projects-init">
- <j:if test="${mpprojectsInit == null}">
+ <j:if test="${mpprojectsInit == null or mpprojectsInit == 'false'}">
<j:set var="mpprojectsInit" value="true" />
<ant:echo>Gathering project list</ant:echo>
<maven:reactor
Modified: maven/maven-1/plugins/trunk/multiproject/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/multiproject/xdocs/changes.xml?rev=348283&r1=348282&r2=348283&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/multiproject/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/multiproject/xdocs/changes.xml Tue Nov 22 15:10:35 2005
@@ -26,6 +26,7 @@
</properties>
<body>
<release version="1.5-SNAPSHOT" date="in SVN">
+ <action dev="ltheussl" type="add" issue="MPMULTIPROJECT-58" due-to="Lucas Persson">Possibility to re-execute <code>multiproject:projects-init</code>.</action>
<action dev="ltheussl" type="fix" issue="MPMULTIPROJECT-45">multiproject:clean doesn't remove top target directory.</action>
<action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :
<ul>
Modified: maven/maven-1/plugins/trunk/multiproject/xdocs/faq.fml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/multiproject/xdocs/faq.fml?rev=348283&r1=348282&r2=348283&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/multiproject/xdocs/faq.fml (original)
+++ maven/maven-1/plugins/trunk/multiproject/xdocs/faq.fml Tue Nov 22 15:10:35 2005
@@ -23,16 +23,19 @@
<faq id="collect-var-change">
<question>My custom navigation uses <code>reactorProjects</code>, and when I upgraded it broke. Why?</question>
<answer>
+ <p>
<code>reactorProjects</code> is reused by anything using the reactor. Since there is no concept of scope or
nesting, the variable <code>multiprojects</code> is now used instead. If you change your variable references,
this should start working again.
+ </p>
</answer>
</faq>
<faq id="resources-not-included-in-artifacts">
<question>When using multiproject to build subprojects, resources are not included in my artifacts. Why?</question>
<answer>
- Use ${basedir} in your subproject's POM resource section:
<p>
+ Use ${basedir} in your subproject's POM resource section:
+ </p>
<source><![CDATA[
<resources>
<resource>
@@ -42,10 +45,18 @@
</includes>
</resource>
</resources>]]></source>
- </p>
<p>
The resources won't be included if you just specify "src/java" as directory unless maven is started from within the subproject directory.
</p>
+ </answer>
+ </faq>
+ <faq id="multiple-calls">
+ <question>How can I call a <code>multiproject</code> goal twice with different settings for the <code>maven.multiproject.includes</code> property?</question>
+ <answer>
+ <p>
+ You need to set back the variable <code>mpprojectsInit</code> before you call the goal a second time:
+ </p>
+ <source><![CDATA[<maven:set plugin="maven-multiproject-plugin" property="mpprojectsInit" value="false"/>]]></source>
</answer>
</faq>
</part>