-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
I am running Hudson ver. 1.82-SNAPSHOT (private-02/14/2007 09:01-hudson) and I
am getting this exception when I run compile on a Maven 2 project:
[INFO ] ----------------------------------------------------------------------------
[INFO ] Building util
[INFO ] task-segment: [clean, compile]
[INFO ] ----------------------------------------------------------------------------
[INFO ] [clean:clean]
[INFO ] Deleting directory /home/kldavis/.hudson/jobs/util/workspace/target
[INFO ] Deleting directory /home/kldavis/.hudson/jobs/util/workspace/target/classes
[INFO ] Deleting directory
/home/kldavis/.hudson/jobs/util/workspace/target/test-classes
[INFO ] [resources:resources]
[INFO ] Using default encoding to copy filtered resources.
[WARN ] While downloading servletapi:servletapi:2.4
[WARN ] This artifact has been relocated to javax.servlet:servlet-api:2.4.
[INFO ] [compiler:compile]
ERROR: Compilation failure
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at hudson.maven.MavenEmbedder.execute(MavenEmbedder.java:441)
at hudson.maven.MavenEmbedder.execute(MavenEmbedder.java:382)
at hudson.maven.MavenBuild$Builder.invoke(MavenBuild.java:150)
at hudson.maven.MavenBuild$Builder.invoke(MavenBuild.java:111)
at hudson.FilePath.act(FilePath.java:191)
at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:243)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:110)
at hudson.model.Run.run(Run.java:533)
at hudson.maven.MavenBuild.run(MavenBuild.java:102)
at hudson.model.Executor.run(Executor.java:61)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
hudson.maven.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:119)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 15 more
finished: FAILURE
The project builds fine from the command line so it appears to be some issue
with Hudson. I have also tried 1.81 with the same results.
I believe you are trying the experimental native maven2 support, right?
Maven sends javac output to System.out and System.err, and Hudson has a TODO to
capture such output into the build output view. So I'm going to use this issue
report for that purpose.
In the mean time, you can look at the server log file to check what error javac
produced, and more likely, you can use the freestyle project to build a maven
project, which is much more stable.