Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What is wrong by building the parent?</p> <p>In fact, in Maven, there are two different concepts (which are generally used at the same time):</p> <ul> <li>The parent POM</li> <li>The modules aggregation</li> </ul> <p>The first one is a definition of everything that is common with all the children. You define a parent as a pom-packaged project, and you can install it in your repository.</p> <p>When you build a child of this parent, Maven2 will retrieve this parent to merge the parent pom with the child pom. You can have a look to the entire pom.xml by running the command <code>mvn help:effective-pom</code>.</p> <p>In this case, the parent pom will not be built, it will just be retrieved from the repository.</p> <p>The second case is a project that contains a <code>modules</code> list of sub-projects. The principle is that every command that you run on this project will also be run on all the sub-modules. The order of the modules will be defined by the Reactor, which will look at inter-modules dependencies to find which module must be built before the others. If there are no dependencies, then it will take the list of the modules as they are defined in the parent pom.xml.</p> <p>In this case, if you run a command on the root project, Maven2 will first built the root project, and then the sub-modules. You <strong>cannot</strong> skip the creation of the root project.</p> <hr/> <p><em>Edit, thanks to RichSeller comment</em></p> <p>A complete explanation of the differences between multi-modules (aggregation project) and inheritance (parent project) can be found in the Maven book, <a href="http://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-pom-best-practice.html#pom-relationships-sect-multi-vs-inherit" rel="nofollow noreferrer">here</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload