Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-599

failed: A required class was missing while executing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0-beta-1
    • 4.0.0
    • None

    Description

      Just trying to use the maven-compiler-plugin 4.0.0-beta-1 with Maven 4.0.0-beta-4 fails with the following error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:4.0.0-beta-1:compile (default-compile) on project tree: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:4.0.0-beta-1:compile failed: A required class was missing while executing org.apache.maven.plugins:maven-compiler-plugin:4.0.0-beta-1:compile: org/apache/maven/api/DependencyCoordinate
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.maven.plugins:maven-compiler-plugin:4.0.0-beta-1
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/Users/khm/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/4.0.0-beta-1/maven-compiler-plugin-4.0.0-beta-1.jar
      [ERROR] urls[1] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-utils/4.0.1/plexus-utils-4.0.1.jar
      [ERROR] urls[2] = file:/Users/khm/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.plexus/0.9.0.M2/org.eclipse.sisu.plexus-0.9.0.M2.jar
      [ERROR] urls[3] = file:/Users/khm/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
      [ERROR] urls[4] = file:/Users/khm/.m2/repository/javax/enterprise/cdi-api/1.2/cdi-api-1.2.jar
      [ERROR] urls[5] = file:/Users/khm/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.9.0.M2/org.eclipse.sisu.inject-0.9.0.M2.jar
      [ERROR] urls[6] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.1.0/plexus-component-annotations-2.1.0.jar
      [ERROR] urls[7] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.6.0/plexus-classworlds-2.6.0.jar
      [ERROR] urls[8] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-java/1.2.0/plexus-java-1.2.0.jar
      [ERROR] urls[9] = file:/Users/khm/.m2/repository/com/thoughtworks/qdox/qdox/2.0.3/qdox-2.0.3.jar
      [ERROR] urls[10] = file:/Users/khm/.m2/repository/org/ow2/asm/asm/9.7/asm-9.7.jar
      [ERROR] urls[11] = file:/Users/khm/.m2/repository/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar
      [ERROR] urls[12] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.15.0/plexus-compiler-api-2.15.0.jar
      [ERROR] urls[13] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/2.15.0/plexus-compiler-manager-2.15.0.jar
      [ERROR] urls[14] = file:/Users/khm/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar
      [ERROR] urls[15] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-xml/4.0.1/plexus-xml-4.0.1.jar
      [ERROR] urls[16] = file:/Users/khm/.m2/repository/org/apache/maven/maven-xml-impl/4.0.0-alpha-5/maven-xml-impl-4.0.0-alpha-5.jar
      [ERROR] urls[17] = file:/Users/khm/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.15.0/plexus-compiler-javac-2.15.0.jar
      [ERROR] urls[18] = file:/Users/khm/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/4.0.0-beta-1/maven-plugin-annotations-4.0.0-beta-1.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api.v4, parent: null]]
      [ERROR] 
      [ERROR] -----------------------------------------------------
      [ERROR] : org.apache.maven.api.DependencyCoordinate
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
      [ERROR] Re-run Maven using the '-X' switch to enable verbose output
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            khmarbaise Karl Heinz Marbaise
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: