org.apache.maven.ProjectBuildFailureException: Build for project: com.example:example:war:2.0-SNAPSHOT failed during execution of mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile

Google Groups | Claudio Di Vita | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Maven Compiler Plugin & Java VM

    Google Groups | 9 years ago | Claudio Di Vita
    org.apache.maven.ProjectBuildFailureException: Build for project: com.example:example:war:2.0-SNAPSHOT failed during execution of mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
  2. 0

    Maven unable to read the libraries from repository

    Coderanch | 9 years ago | Nina Binde
    org.apache.maven.ProjectBuildFailureException: Build for project: com.ben.ht:war:1.0 failed during execution of mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
  3. 0

    mvn build error

    GitHub | 4 years ago | daisyzhu
    org.apache.maven.BuildFailureException: Compilation failure error: Exception thrown while constructing Processor object: com/google/common/collect/Multimap
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using JRE 1.5, still maven says annotation not supported in -source 1.3

    Stack Overflow | 6 years ago | Abhijeet
    org.apache.maven.plugin.CompilationFailureException: Compilation failure C:\temp\SpringExample\src\main\java\com\mkyong\stock\model\Stock.java:[45,9] annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) @Override</p> <pre><code> at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)

  1. chenjunjun 3 times, last 4 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.maven.plugin.CompilationFailureException

    Compilation failure Unable to locate the Javac Compiler in: C:\Program Files\Java\jre1.6.0_04\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable.

    at org.apache.maven.plugin.AbstractCompilerMojo.execute()
  2. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
    2. org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
    3. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:549)
    3 frames
  3. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:544)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
    4. org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
    5. org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
    6. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
    6 frames
  4. org.apache.maven
    MavenEmbedder.execute
    1. org.apache.maven.embedder.MavenEmbedder.execute_aroundBody4(MavenEmbedder.java:880)
    2. org.apache.maven.embedder.MavenEmbedder.execute_aroundBody5$advice(MavenEmbedder.java:304)
    3. org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
    3 frames
  5. org.devzuz.q
    EclipseMavenRequest.run
    1. org.devzuz.q.maven.embedder.internal.EclipseMaven.executeRequest(EclipseMaven.java:286)
    2. org.devzuz.q.maven.embedder.internal.EclipseMavenRequest.run(EclipseMavenRequest.java:71)
    2 frames
  6. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    1 frame