Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Information Provided
-
3.2.0
-
None
-
None
-
Unknown
Description
The error occurs using the stable JDK9.
Plugin configuration:
<plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>foo</id> <phase>generate-sources</phase> <goals> <goal>wsdl2java</goal> </goals> <configuration> <wsdlOptions> <wsdlOption> <wsdl>foo.wsdl</wsdl> <extraargs> <extraarg>-validate</extraarg> <extraarg>-client</extraarg> <extraarg>-impl</extraarg> <extraarg>-fe</extraarg> <extraarg>cxf</extraarg> <!-- <extraarg>-xjc-Xts</extraarg> --> <extraarg>-xjc-Xts:style:multiline</extraarg> <extraarg>-verbose</extraarg> </extraargs> </wsdlOption> </wsdlOptions> <defaultOptions> <faultSerialVersionUID>TIMESTAMP</faultSerialVersionUID> </defaultOptions> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.cxf.xjcplugins</groupId> <artifactId>cxf-xjc-ts</artifactId> <version>3.2.0</version> </dependency> </dependencies> </plugin>
Stacktrace:
[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.2.0:wsdl2java (generate-sources-service20) on project foo: Execution bar of goal org.apache.cxf:cxf-codegen-plugin:3.2.0:wsdl2java failed: A required class was missing while executing org.apache.cxf:cxf-codegen-plugin:3.2.0:wsdl2java: javax/xml/bind/annotation/adapters/HexBinaryAdapter [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.apache.cxf:cxf-codegen-plugin:3.2.0 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-codegen-plugin/3.2.0/cxf-codegen-plugin-3.2.0.jar [ERROR] urls[1] = file:/Users/jhack/.m2/repository/org/apache/cxf/xjcplugins/cxf-xjc-ts/3.2.0/cxf-xjc-ts-3.2.0.jar [ERROR] urls[2] = file:/Users/jhack/.m2/repository/org/apache/commons/commons-lang3/3.6/commons-lang3-3.6.jar [ERROR] urls[3] = file:/Users/jhack/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar [ERROR] urls[4] = file:/Users/jhack/.m2/repository/org/codehaus/plexus/plexus-archiver/1.2/plexus-archiver-1.2.jar [ERROR] urls[5] = file:/Users/jhack/.m2/repository/org/codehaus/plexus/plexus-io/1.0.1/plexus-io-1.0.1.jar [ERROR] urls[6] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-core/3.2.0/cxf-core-3.2.0.jar [ERROR] urls[7] = file:/Users/jhack/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar [ERROR] urls[8] = file:/Users/jhack/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar [ERROR] urls[9] = file:/Users/jhack/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.2/xmlschema-core-2.2.2.jar [ERROR] urls[10] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-tools-common/3.2.0/cxf-tools-common-3.2.0.jar [ERROR] urls[11] = file:/Users/jhack/.m2/repository/org/apache/velocity/velocity-engine-core/2.0/velocity-engine-core-2.0.jar [ERROR] urls[12] = file:/Users/jhack/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar [ERROR] urls[13] = file:/Users/jhack/.m2/repository/wsdl4j/wsdl4j/1.6.3/wsdl4j-1.6.3.jar [ERROR] urls[14] = file:/Users/jhack/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar [ERROR] urls[15] = file:/Users/jhack/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.11/jaxb-core-2.2.11.jar [ERROR] urls[16] = file:/Users/jhack/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-impl-2.2.11.jar [ERROR] urls[17] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-core/3.2.0/cxf-tools-wsdlto-core-3.2.0.jar [ERROR] urls[18] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-tools-validator/3.2.0/cxf-tools-validator-3.2.0.jar [ERROR] urls[19] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-rt-bindings-soap/3.2.0/cxf-rt-bindings-soap-3.2.0.jar [ERROR] urls[20] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-rt-databinding-jaxb/3.2.0/cxf-rt-databinding-jaxb-3.2.0.jar [ERROR] urls[21] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-rt-wsdl/3.2.0/cxf-rt-wsdl-3.2.0.jar [ERROR] urls[22] = file:/Users/jhack/.m2/repository/org/ow2/asm/asm/5.2/asm-5.2.jar [ERROR] urls[23] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/3.2.0/cxf-tools-wsdlto-databinding-jaxb-3.2.0.jar [ERROR] urls[24] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/3.2.0/cxf-tools-wsdlto-frontend-jaxws-3.2.0.jar [ERROR] urls[25] = file:/Users/jhack/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar [ERROR] urls[26] = file:/Users/jhack/.m2/repository/org/apache/commons/commons-text/1.1/commons-text-1.1.jar [ERROR] urls[27] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-javascript/3.2.0/cxf-tools-wsdlto-frontend-javascript-3.2.0.jar [ERROR] urls[28] = file:/Users/jhack/.m2/repository/org/apache/cxf/cxf-rt-javascript/3.2.0/cxf-rt-javascript-3.2.0.jar [ERROR] urls[29] = file:/Users/jhack/.m2/repository/org/springframework/spring-core/4.3.10.RELEASE/spring-core-4.3.10.RELEASE.jar [ERROR] urls[30] = file:/Users/jhack/.m2/repository/org/springframework/spring-beans/4.3.10.RELEASE/spring-beans-4.3.10.RELEASE.jar [ERROR] urls[31] = file:/Users/jhack/.m2/repository/org/springframework/spring-context/4.3.10.RELEASE/spring-context-4.3.10.RELEASE.jar [ERROR] urls[32] = file:/Users/jhack/.m2/repository/org/springframework/spring-aop/4.3.10.RELEASE/spring-aop-4.3.10.RELEASE.jar [ERROR] urls[33] = file:/Users/jhack/.m2/repository/org/springframework/spring-expression/4.3.10.RELEASE/spring-expression-4.3.10.RELEASE.jar [ERROR] urls[34] = file:/Users/jhack/.m2/repository/org/apache/ant/ant/1.10.1/ant-1.10.1.jar [ERROR] urls[35] = file:/Users/jhack/.m2/repository/org/apache/ant/ant-launcher/1.10.1/ant-launcher-1.10.1.jar [ERROR] urls[36] = file:/Users/jhack/.m2/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar [ERROR] urls[37] = file:/Users/jhack/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[project>xyz, parent: ClassRealm[maven.api, parent: null]]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] : javax.xml.bind.annotation.adapters.HexBinaryAdapter