Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Using Multiproject

My custom navigation uses reactorProjects, and when I upgraded it broke. Why?

reactorProjects is reused by anything using the reactor. Since there is no concept of scope or nesting, the variable multiprojects is now used instead. If you change your variable references, this should start working again.



When using multiproject to build subprojects, resources are not included in my artifacts. Why?

Use ${basedir} in your subproject's POM resource section:

<resources>
  <resource>
    <directory>${basedir}/src/java</directory>
    <includes>
      <include>**/*.properties</include>
   </includes>
  </resource>
</resources>

The resources won't be included if you just specify "src/java" as directory unless maven is started from within the subproject directory.



How can I call a multiproject goal twice with different settings for the maven.multiproject.includes property?

You need to set back the variable mpprojectsInit before you call the goal a second time:

<maven:set plugin="maven-multiproject-plugin" property="mpprojectsInit" value="false"/>