[Building Sakai] multi threaded maven builds causing random compilation errors

Steve Swinsburg steve.swinsburg at gmail.com
Wed Jan 30 05:14:37 PST 2013


Hi all,

Does anyone else run Maven 3 in multi threaded mode? 

I thought I should do something with the abundance of cores on this machine so setup my build to run in multi threaded mode, but I now randomly get class compilation errors or actual JVM compiler errors. There is actually nothing wrong with the class. And its always a different file and the file compiles perfectly fine without the multithreaded build turned on. And sometimes it compiles just fine *with* it turned on!

Example:

All run on the adobeconnect project, all taken as the last line of the error:

mvn -T 1C clean install
...
[ERROR] /Users/steve/dev/sakai/src/extra/adobeconnect/openmeetings/src/java/org/sakaiproject/videoconference/openmeetings/service/axis/services/AddRoomWithModerationAndQuestions.java:[700,44] class, interface, or enum expected

mvn -T 1C clean install
...
[ERROR] /Users/steve/dev/sakai/src/extra/adobeconnect/openmeetings/src/java/org/sakaiproject/videoconference/openmeetings/service/axis/services/CloseRoom.java:[471,110] package org.java.l.axis2.databinding.utils does not exist

Then a build as single threaded:

mvn clean install

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.337s
[INFO] Finished at: Thu Jan 31 00:11:27 EST 2013
[INFO] Final Memory: 19M/2177M
[INFO] ------------------------------------------------------------------------

Then a JVM compiler error:

mvn -T 1C clean install
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project adobeconnect-tool: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] An exception has occurred in the compiler (1.6.0_37). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
[ERROR] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.annotation.RetentionPolicy not found

I wonder if its the JDK version?

cheers,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130131/61f2adac/attachment.html 


More information about the sakai-dev mailing list