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

Steve Swinsburg steve.swinsburg at gmail.com
Wed Jan 30 16:02:38 PST 2013


Same setup as me with the maven version etc. there is a newer maven 3 version out, I might manually upgrade and see if that solves it.

Cheers.

Sent from my iPad

On 31/01/2013, at 6:41, "Poindexter, David Ray" <davpoind at iupui.edu> wrote:

> Not that I'm aware of. The other thing is that, unfortunately, Macs are typically a little behind when it comes to getting Java upgrades, so the issue may already be "fixed" for everyone else who is not as behind as we are.
> 
> Also, I'm just using the OS X stock version of Maven 3:
> 
> Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: /usr/share/maven
> Java version: 1.6.0_37, vendor: Apple Inc.
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"
> 
> --
> David Poindexter
> Systems Analyst
> Enterprise Student Systems
> UITS
> Indiana University
> 535 West Michigan Street
> Indianapolis, IN 46202-5157
> O: 317.274.8686
> W: http://uits.iu.edu
> 
> From: Steve Swinsburg <steve.swinsburg at gmail.com>
> Date: Wednesday, January 30, 2013 1:31 PM
> To: David Poindexter <davpoind at iupui.edu>
> Cc: Sam Ottenhoff <ottenhoff at longsight.com>, Sakai Dev <sakai-dev at collab.sakaiproject.org>
> Subject: Re: [Building Sakai] multi threaded maven builds causing random compilation errors
> 
> David that is precisely what I am getting, also on an i7, though an iMac. Glad I'm not alone, though it sucks.
> 
> Do you know if this has been reported to Maven?
> 
> @Sam, ok, good to know, still might be the JVM, perhaps the CPU.
> 
> cheers,
> Steve
> 
> 
> On 31/01/2013, at 2:13 AM, "Poindexter, David Ray" <davpoind at iupui.edu> wrote:
> 
>> I have not been able to get multithreading working using this on an i7 MacBook Pro:
>> 
>> java version "1.6.0_37"
>> Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
>> 
>> Whether I do –T 2C or –T 4, I always get errors. Here's the most recent, using –T 4 for a recent pull off the sakai 2.9.x trunk:
>> 
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sakai-site-manage-group-helper: Compilation failure: Compilation failure:
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupListProducer.java:[93,76] ')' expected
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupListProducer.java:[93,126] ')' expected
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupListProducer.java:[93,100] not a statement
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupListProducer.java:[93,128] not a statement
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupListProducer.java:[93,132] ';' expected
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupEditProducer.java:[157,10] not a statement
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupEditProducer.java:[157,13] ';' expected
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupEditProducer.java:[162,10] 'catch' without 'try'
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupEditProducer.java:[162,26] ')' expected
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupEditProducer.java:[162,16] not a statement
>> [ERROR] /opt/sakai-2.9.x-src/site-manage/site-manage-group-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroup/rsf/GroupEditProducer.java:[162,28] ';' expected
>> [ERROR] -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sakai-site-manage-group-helper: Compilation failure
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>> at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
>> at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:680)
>> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
>> at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
>> at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
>> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>> ... 13 more
>> 
>> --
>> David Poindexter
>> Systems Analyst
>> Enterprise Student Systems
>> UITS
>> Indiana University
>> 535 West Michigan Street
>> Indianapolis, IN 46202-5157
>> O: 317.274.8686
>> W: http://uits.iu.edu
>> 
>> From: Sam Ottenhoff <ottenhoff at longsight.com>
>> Date: Wednesday, January 30, 2013 9:28 AM
>> To: Steve Swinsburg <steve.swinsburg at gmail.com>
>> Cc: Sakai Dev <sakai-dev at collab.sakaiproject.org>
>> Subject: Re: [Building Sakai] multi threaded maven builds causing random compilation errors
>> 
>> 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/20130131/58235379/attachment.html 


More information about the sakai-dev mailing list