如何解决无法执行目标 org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z
尝试使用
生成源构建失败
Failed to execue goal org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) on project OracleAtomicServie: org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z
org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z (org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java:generate-sources:generate-sources)
org.apache.maven.plugin.MojoExecutionException: org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z at
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:434) at
org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:279) at
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:511) at
这是来自pom的插件...
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.2.4</version>
<dependencies>
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.xml.ws/jaxws-api -->
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.jws/javax.jws-api -->
<dependency>
<groupId>javax.jws</groupId>
<artifactId>javax.jws-api</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>src/main/resources/wsdl/supplierService.wsdl</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
WSDL 文件有效且来自 Oracle Fusion。
我找不到 isJava9Compatible() 方法来确定版本不匹配的地方。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。