Child pages
  • Parallel builds in Maven 3

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This build-mode analyzes your project's dependency graph and schedules modules that can be built in parallel according to the dependency graph of your project.

The above mentioned thread per cpu core means the number of cores is used as a multiplier 

Experimental feature for 3.0!

...

  • Surefire with forkMode=never, surefire [2.6,) asserts this.
  • maven-modello-plugin, fixed in [1.4,)
  • All maven-archiver clients (EAR, EJB, JAR, WAR etc), see httphttps://jiraissues.codehausapache.org/jira/browse/MSHARED-148 related/links section. EAR, EJB, JAR and WAR are fixed in latest version.

...

The console output of both parallel modes is not sorted in any way, which can be a bit confusing. httphttps://jiraissues.codehausapache.org/jira/browse/MNG-2727

Mojo thread safety assertion checklist

...

If a mojo uses a known-non-threadsafe external dependency, you may want to do something like this:

Code Block

public class MyMojo
    extends AbstractMojo
{

  private static final Object lock = new Object();

  public void execute()
  {
     synchronized( lock) 
     {
         // Main mojo code
     }
  }
}

...