Maven enunciate plugin on Java 1.8 is now removed from the latest JDK (i.e. Java annotation processing tool)
•
Java
The question is how can Java 1.8 work with Maven enunciate plugin?
Use the Maven plug-in org codehaus. Enunciate version 1.29 and OSX JDK 1.7 0_ All very good Enunciate depends on apt, I'm in 1.7 0_ See this runtime warning in 25
When changed to 1.8 0_ 05 when build fails
Apt did disappear, so we couldn't find about com sun. mirror. Runtime error for apt.annotationprocessorfactory
…
<snip> urls[46] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-xml/1.29/enunciate-xml-1.29.jar urls[47] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-java-client/1.29/enunciate-java-client-1.29.jar urls[48] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-c/1.29/enunciate-c-1.29.jar urls[49] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-obj-c/1.29/enunciate-obj-c-1.29.jar urls[50] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-csharp/1.29/enunciate-csharp-1.29.jar urls[51] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-ruby/1.29/enunciate-ruby-1.29.jar urls[52] = file:/Users/k1/.m2/repository/org/codehaus/enunciate/enunciate-PHP/1.29/enunciate-PHP-1.29.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api,parent: null]] ----------------------------------------------------- at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:165) ... 20 more Caused by: java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory at org.codehaus.enunciate.DocsMojo.loadMavenSpecificEnunciate(DocsMojo.java:107) at org.codehaus.enunciate.ConfigMojo.execute(ConfigMojo.java:326) at org.codehaus.enunciate.DocsMojo.execute(DocsMojo.java:81) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133) ... 20 more Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) ... 24 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions,please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
Solution
July 2015 editor:
As @ bmargulies recommended, I checked the JIRA page (I think I should finish it the first time!) Interpretation JIRA eniciate-701
"There is no timetable for enunciate / jdk8 compatibility."
Enunciate has been transferred to GitHub; The problem there is #68
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码