[Building Sakai] multi threaded maven builds causing random compilation errors
Sam Ottenhoff
ottenhoff at longsight.com
Wed Jan 30 06:28:45 PST 2013
Yeah, multi-threaded mode works well for me. I use -T 4 , JDK 1.6.0_35 on
Windows x64, skipping Maven tests. Total build time is 4 mins for
sakai-trunk-all (no adobeconnect).
--Sam
On Wed, Jan 30, 2013 at 8:14 AM, Steve Swinsburg
<steve.swinsburg at gmail.com>wrote:
> 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
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130130/9605a52c/attachment.html
More information about the sakai-dev
mailing list