[Building Sakai] help compiling pack-demo

Neal Caidin neal.caidin at apereo.org
Wed Nov 12 18:50:58 PST 2014


Hi All,

I solved one problem I was having with compiling locally. When I was forced
to upgrade to Java 1.7, in itself not a bad thing, Java was still pointing
at 1.6, two installations on my Mac. I tried changing JAVA_HOME, making new
symbolic links, all kinds of stuff and I think I made it worse. But then
from a Stack Exchange article I saw a bit about man java_home. From that I
got the following which worked like a charm:

export JAVA_HOME=`/usr/libexec/java_home`

So if you have a Mac that is at least a couple of years old when Apple was
still installing Java 6 by default, and you are upgrading to Java 7 or 8, I
hope that tip saves you a lot of time.

After solving that problem, compiling pack-demo is still failing for me.
Running
mvn clean install -Dmaven.test.skip=true -P pack-demo

When it failed, maven suggested I run with the -e option to get a fuller
error message, which I did and got the output below.

Any suggestions?

Thanks,
Neal



[INFO] Sakai Master ...................................... SUCCESS [  0.520
s]
[INFO] Sakai Pack Demo ................................... FAILURE [01:54
min]
[INFO] Sakai base pom .................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 01:55 min
[INFO] Finished at: 2014-11-12T21:30:46-05:00
[INFO] Final Memory: 10M/491M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (pack-demo-build) on
project pack-demo: An Ant BuildException has occured: The following error
occurred while executing this line:
[ERROR] /Users/nealcaidin/dev/trunk2/pack/pack-demo/build.xml:62: exec
returned: 1
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (pack-demo-build)
on project pack-demo: An Ant BuildException has occured: The following
error occurred while executing this line:
/Users/nealcaidin/dev/trunk2/pack/pack-demo/build.xml:62: exec returned: 1
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:108)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant
BuildException has occured: The following error occurred while executing
this line:
/Users/nealcaidin/dev/trunk2/pack/pack-demo/build.xml:62: exec returned: 1
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by:
/Users/nealcaidin/dev/trunk2/pack/pack-demo/target/antrun/build-main.xml:9:
The following error occurred while executing this line:
/Users/nealcaidin/dev/trunk2/pack/pack-demo/build.xml:62: exec returned: 1
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:497)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
... 21 more
Caused by: /Users/nealcaidin/dev/trunk2/pack/pack-demo/build.xml:62: exec
returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:650)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:676)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
... 33 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :pack-demo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141112/8c6e6ddc/attachment.html 


More information about the sakai-dev mailing list