Why does Jenkins/Maven give this error

It’s kinda weird. I’m getting a huge error, and have got no clue where it comes from / how to fix.
The error:

mavenExecutionResult exceptions not empty
message : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project Sortal: Compilation failure
cause : Compilation failure
Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project Sortal: 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.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
    at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:112)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:287)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 27 more
channel stopped
Finished: FAILURE

I set up the project as a Maven project, let it build when it gets a push-notification from Github (and it builds, so that’s not a problem), and my pom.xml doesn’t contain any errors.
How to fix this?

  • How can I output from java code to the Jenkins console?
  • Using git to put a project into a repository
  • .pack file from git repo can't be deleted using File delete() method
  • SVN error on connecting with eclipse
  • Clone git repository over ssh with username and password by Java
  • How to inject SVN revision number into JAR?
  • Why is Jenkins ignoring the %PATH% variable when using MSBuild?
  • Why won’t Jenkins running on my Mac connect to a local git repo?
  • How do I get Jenkins to build on push to a BitBucket git repository?
  • Error: cannot open display: :0 for Selenium tests
  • Jenkins triggers with git sparse checkout
  • Jenkins not waiting on call to a bash script with expect
  • 3 Solutions collect form web for “Why does Jenkins/Maven give this error”

    you should use the current version of the compiler plugin. This will show you your problem. I guess you have non plain ASCII characters like ä,ö,ü … in your JavaDoc

    Just a blind shoot – do you have maven compiler configured properly for JDK >= 1.5? This is a pesky little thing, that I constantly keep forgetting about, but Maven uses JDK 1.4 as a default platform, so using Generics or any other feature from 1.5 ends up in compilation failure. Although in this case you should receive a more verbose output from Maven, so once again – it’s a blind shoot.

    In the mean time, I’ve found the problem.
    It seems I was still using Referenced Libraries in my project, instead of using Maven’s dependencies. Therefore, Maven didn’t know what to do with certain aspects of my code, and errored out.

    Git Baby is a git and github fan, let's start git clone.