Hi Parallel execution works fine, but you need to update the version of maven-compiler-plugin to the latest version 2.5.1. You are being bitten by a bug in that plugin:
http://jira.codehaus.org/browse/MCOMPILER-170 On 2012-07-20 22:43, Laird Nelson wrote: > I have never gotten the -T option to Maven to work. > > On a simple jar project that gets scheduled, periodically the compiler will > say things like this: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.4:compile > (default-compile) on project com-foobar-api: Compilation failure: > Compilation failure: > [ERROR] > /Users/ljnelson/Projects/foobar/com-foobar-api/src/main/java/com/foobar/api/FrobnicationManager.java:[1,0] > class, interface, or enum expected > [ERROR] > /Users/ljnelson/Projects/foobar/com-foobar-api/src/main/java/com/foobar/api/FrobnicationManager.java:[5,0] > class, interface, or enum expected > [ERROR] -> [Help 1] > > ...even though in serial mode this class compiles fine (and indeed is > syntactically valid). > > In other cases it will complain about how it cannot load, e.g., > java.util.LinkedHashMap, even though--again--in serial mode this class is > loaded just fine. > > I am using Maven 3.0.3 on a Mac with four cores with -T 2 as my parallel > option in a large multi-module project. > > I assume that the parallel feature of Maven is in a pre-alpha state? Just > trying to see what the status is. > > Best, > Laird > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
