更新时间:2022-04-27 01:15:36
似乎限制默认值在JDK8中已更改.
Seems restriction default have changed in JDK8.
发现了这一点: http://wiki.netbeans.org/FaqWSDLExternalSchema
但是,我很难找出如何将其应用于Maven插件的方法,但是传递jvm参数是可行的:
It was however hard for me to find out how to apply this to the Maven plugin, but passing jvm arguments worked:
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>${jaxws.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<verbose>true</verbose>
<xdebug>true</xdebug>
<wsdlDirectory>${basedir}/src/main/wsdl/</wsdlDirectory>
<wsdlFiles>
<wsdlFile>foo.wsdl</wsdlFile>
</wsdlFiles>
<vmArgs>
<vmArg>-Djavax.xml.accessExternalDTD=all</vmArg>
<vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
</vmArgs>
</configuration>
</execution>
</executions>
</plugin>