-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: Macintosh, OS: Mac OS X
I just sync'd to 1.328 and tried mvn clean install. Some investigation
led me to discover a problem finding apt. I am running mac os x
10.5.8, and I have been able to build in the past without this problem.
The workaround is:
$ cd $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0 $ sudo ln -
s Home/bin bin
Here's the maven output:
655 ~/src/svn-fresh/yhudson/hudson/trunk $ mvn -e install -DskipTests
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Hudson main module
[INFO] Hudson remoting layer
[INFO] Hudson CLI
[INFO] Hudson core
[INFO] Hudson Maven PluginManager interceptor
[INFO] Hudson Maven CLI agent
[INFO] Maven Integration plugin
[INFO] Hudson war
[INFO] Test harness for Hudson and plugins
WAGON_VERSION: 1.0-beta-2
[INFO] ------------------------------------------------------------------------
[INFO] Building Hudson main module
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce
]
[INFO] [enforcer:display-info
]
[INFO] Maven Version: 2.0.9
[INFO] JDK Version: 1.6.0_15 normalized as: 1.6.0-15
[INFO] OS Info: Arch: x86_64 Family: mac Name: mac os x Version: 10.5.8
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process
]
[INFO] inceptionYear not specified, defaulting to 2009
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/bshine/src/svn-fresh/yhudson/hudson/trunk/pom.xml to
/Users/bshine/.m2/repository/org/jvnet/hudson/main/pom/1.328/pom-1.328.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Hudson remoting layer
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce
]
[INFO] [enforcer:display-info
]
[INFO] Maven Version: 2.0.9
[INFO] JDK Version: 1.6.0_15 normalized as: 1.6.0-15
[INFO] OS Info: Arch: x86_64 Family: mac Name: mac os x Version: 10.5.8
[INFO] [remote-resources:process
]
[INFO] inceptionYear not specified, defaulting to 2009
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 3 source files to
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting/target/classes
[INFO] [antrun-extended:run
]
[INFO] Executing tasks
[unjar] Expanding:
/Users/bshine/.m2/repository/args4j/args4j/2.0.16/args4j-2.0.16.jar into
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting/target/classes
[INFO] Executed tasks
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting/target/test-classes
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] [jar:sign
]
[debug] jarsigner
executable=[/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/jarsigner]
[debug] Executing: /bin/sh -c "cd
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting &&
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/jarsigner
-verify
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting/target/remoting-1.328.jar"
[info] jar verified.
[INFO] JAR
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting/target/remoting-1.328.jar
is already signed. Skipping.
[INFO] [install:install]
[INFO] Installing
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/remoting/target/remoting-1.328.jar
to
/Users/bshine/.m2/repository/org/jvnet/hudson/main/remoting/1.328/remoting-1.328.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Hudson CLI
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce
]
[INFO] [enforcer:display-info
]
[INFO] Maven Version: 2.0.9
[INFO] JDK Version: 1.6.0_15 normalized as: 1.6.0-15
[INFO] OS Info: Arch: x86_64 Family: mac Name: mac os x Version: 10.5.8
[INFO] [localizer:generate
]
[INFO] [remote-resources:process
]
[INFO] inceptionYear not specified, defaulting to 2009
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[WARNING] DEPRECATED [descriptorId]: Please use descriptorRefs instead
[INFO] [assembly:attached
]
[INFO] Processing DependencySet (output=)
[INFO] Building jar:
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/cli/target/cli-1.328-jar-with-dependencies.jar
[INFO] [install:install]
[INFO] Installing
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/cli/target/cli-1.328.jar to
/Users/bshine/.m2/repository/org/jvnet/hudson/main/cli/1.328/cli-1.328.jar
[INFO] Installing
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/cli/target/cli-1.328-jar-with-dependencies.jar
to
/Users/bshine/.m2/repository/org/jvnet/hudson/main/cli/1.328/cli-1.328-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Hudson core
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce
]
[INFO] [enforcer:display-info
]
[INFO] Maven Version: 2.0.9
[INFO] JDK Version: 1.6.0_15 normalized as: 1.6.0-15
[INFO] OS Info: Arch: x86_64 Family: mac Name: mac os x Version: 10.5.8
[INFO] [localizer:generate
]
[INFO] [antlr:generate
]
[INFO] grammar:
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/core/src/main/grammar/crontab.g
[INFO] The grammar is already generated
[INFO] [remote-resources:process
]
[INFO] inceptionYear not specified, defaulting to 2009
[INFO] [antrun-extended:run
]
[INFO] Executing tasks
[exec] Result: 1
[echo] The build id is: 1.328 (private-10/12/2009 04:18-bshine)
[resolveArtifact] Copying
/Users/bshine/.m2/repository/com/sun/winsw/winsw/1.8/winsw-1.8-bin.exe to
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/core/target/classes/windows-service/hudson.exe
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [stapler:apt-compile]
[INFO] Compiling 586 source files to
/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/core/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Fatal error compiling
Embedded error: Error while executing the external compiler.
error=2, No such file or directory
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error compiling
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
at org.kohsuke.stapler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:491)
at org.kohsuke.stapler.CompilerMojo.execute(CompilerMojo.java:111)
at org.kohsuke.stapler.AptMojo.execute(AptMojo.java:21)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: org.codehaus.plexus.compiler.CompilerException: Error while executing
the external compiler.
at org.kohsuke.stapler.AptCompiler.compileOutOfProcess(AptCompiler.java:148)
at org.kohsuke.stapler.AptCompiler.compile(AptCompiler.java:71)
at org.kohsuke.stapler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:486)
... 20 more
Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while
executing process.
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:697)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:74)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:60)
at org.kohsuke.stapler.AptCompiler.compileOutOfProcess(AptCompiler.java:143)
... 22 more
Caused by: java.io.IOException: Cannot run program
"/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../bin/apt" (in
directory "/Users/bshine/src/svn-fresh/yhudson/hudson/trunk/core"): error=2, No
such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:692)
... 25 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 27 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Mon Oct 12 16:18:53 PDT 2009
[INFO] Final Memory: 64M/125M
[INFO] ------------------------------------------------------------------------