PR: MPMULTIPROJECT-58
Submitted by: Lucas Persson Possibility to re-execute multiproject:projects-init git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@348283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
805397ffba
commit
389b10abe9
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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,11 +45,19 @@
|
||||
</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>
|
||||
</faqs>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user