缺少com.sun.tools.jxc.SchemaGenTask的错误原因

mvn eclipse:eclipse

导入activemq-apollo出现如下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project apollo-dto: An Ant BuildException has occured: taskdef A class needed by class com.sun.tools.jxc.SchemaGenTask cannot be found: com/sun/mirror/apt/AnnotationProcessorFactory
[ERROR] using the classloader AntClassLoader[/Users/zhouwei/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.jar:/Users/zhouwei/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar:/Users/zhouwei/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.jar:/Users/zhouwei/.m2/repository/org/fusesource/hawtbuf/hawtbuf/1.9/hawtbuf-1.9.jar:/Users/zhouwei/.m2/repository/org/apache/activemq/apollo-util/99-trunk-SNAPSHOT/apollo-util-99-trunk-SNAPSHOT.jar:/Users/zhouwei/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/zhouwei/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar]
[ERROR] around Ant part ...<taskdef classname="com.sun.tools.jxc.SchemaGenTask" name="schemagen">... @ 4:73 in /Users/zhouwei/develop/workspace_j2ee/Apollo-trunk/apollo-dto/target/antrun/build-main.xml: com.sun.mirror.apt.AnnotationProcessorFactory


原因是:

找到问题了
this error occurs when trying to build project with the JDK 8 compiler, as Oracle removed com.sun.mirror.apt.AnnotationProcessorFactory in Java 8. This issue has already been fixed for the next release. Until we publish that, please use the JDK 7 to build the project.
原来是编译器版本的过。


你可能感兴趣的:(缺少com.sun.tools.jxc.SchemaGenTask的错误原因)