以下插件调用不断失败:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-resources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated-sources/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/emailIRN.wsdl</wsdl>
<extraargs>
<extraarg>-fe</extraarg>
<extraarg>jaxws21</extraarg>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
... more wsdlOption blocks...
有两个警告:
[WARNING] Error: Could not find or load main class org.apache.cxf.maven_plugin.wsdl2java.ForkOnceWSDL2Java
[WARNING] Caused by: java.lang.ClassNotFoundException: org.apache.cxf.maven_plugin.wsdl2java.ForkOnceWSDL2Java
然后整个事情失败了:
/usr/lib/jvm/java-10-openjdk-amd64/bin/java --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED -jar /tmp/cxf-tmp-975998357168064227/cxf-codegen15218503234725715130.jar /tmp/cxf-tmp-975998357168064227/cxf-w2j6542191939703642136args