ECLIPSE NEON with MAVEN PLUGIN。 CompilerMojo编译错误

时间:2016-07-18 10:59:00

标签: maven m2e eclipse-neon

我正在ECLIPSE NEON上用MAVEN PLUGIN开始一个小小的web项目。 我正在使用:

  1. -LINUX MINT 17.3;
  2. -jdk1.8.0_92;
  3. -apache-行家-3.3.9。
  4. 这是关于mvn -version的提示:

    Apache Maven 3.3.9(bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47 + 01:00) Maven home:/home/filippo/apache-maven-3.3.9 Java版本:1.8.0_92,供应商:Oracle Corporation Java home:/opt/java/jdk1.8.0_92/jre 默认语言环境:it_IT,平台编码:UTF-8 操作系统名称:“linux”,版本:“3.16.0-38-generic”,arch:“amd64”,family:“unix”

    这是PATH变量:

    的/ usr / local / sbin中:在/ usr / local / bin目录:/ usr / sbin目录:在/ usr / bin中:/ sbin目录:/ bin中:在/ usr /游戏:在/ usr /本地/游戏中:/ opt /java/jdk1.8.0_92/bin:/home/filippo/apache-maven-3.3.9/bin

    这是JAVA_HOME变量:

    /opt/java/jdk1.8.0_92

    在ECLIPSE NEON上,我创建了:

    1. 一个新的MAVEN PROJECT
    2. 来自 org.apache.maven.archetypes的模块 - maven-archetype-quickstart
    3. 来自 maven-archetype-webapp
    4. 的MODULE

      这是模块PROJECT的POM.XML

      POM.XML of the module maven project 这是Web模块PROJECT的POM.XML

      POM.XML of the web module maven project 在Maven编译期间,由于类型org.apache.maven.plugin.compiler.CompilerMojo不存在而发生BUILD FAILURE。

      下面是编译的带有DEBUG选项的日志。 为什么这个问题?你可以帮帮我吗?谢谢.... 菲利波。

      [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
      [DEBUG]   Included: org.apache.maven.plugins:maven-compiler-plugin:jar:3.1
      [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.1
      [DEBUG]   Included: org.apache.maven.shared:maven-shared-utils:jar:0.1
      [DEBUG]   Included: com.google.code.findbugs:jsr305:jar:2.0.1
      [DEBUG]   Included: org.apache.maven.shared:maven-shared-incremental:jar:1.1
      [DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
      [DEBUG]   Included: org.codehaus.plexus:plexus-compiler-api:jar:2.2
      [DEBUG]   Included: org.codehaus.plexus:plexus-compiler-manager:jar:2.2
      [DEBUG]   Included: org.codehaus.plexus:plexus-compiler-javac:jar:2.2
      [DEBUG]   Included: org.apache.xbean:xbean-reflect:jar:3.4
      [DEBUG]   Included: log4j:log4j:jar:1.2.12
      [DEBUG]   Included: commons-logging:commons-logging-api:jar:1.1
      [DEBUG]   Included: com.google.collections:google-collections:jar:1.0
      [DEBUG]   Included: junit:junit:jar:3.8.2
      [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.1:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      [WARNING] Error injecting: org.apache.maven.plugin.compiler.CompilerMojo
      java.lang.TypeNotPresentException: Type org.apache.maven.plugin.compiler.CompilerMojo not present
      at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:143)
      at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
      

0 个答案:

没有答案