gpt4 book ai didi

java - 调用 com.sun.tools.ws.wscompile.WsimportTool 失败

转载 作者:行者123 更新时间:2023-12-01 09:05:17 28 4
gpt4 key购买 nike

我在 maven 构建中点击 wsconsume 时遇到以下异常:

Some problems were encountered while building the effective model for MyProject:jar:1.0-SNAPSHOT 'build.plugins.plugin.version' for org.codehaus.mojo:jaxws-maven-plugin is missing. @ line 40, column 14

Failed to execute goal org.codehaus.mojo:jaxws-maven-plugin:2.4.1:wsimport (MyAPI) on project MyProject:Invocation of com.sun.tools.ws.wscompile.WsimportTool failed

相关 POM:

                        <execution>
<id>MyAPI</id>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<bindingDirectory>${basedir}/src/main/resources</bindingDirectory>
<sourceDestDir>${basedir}/src/main/java</sourceDestDir>
<bindingFiles>
<bindingFile>myprod.jaxb</bindingFile>
</bindingFiles>
<xadditionalHeaders>true</xadditionalHeaders>
<verbose>true</verbose>
<args>
<arg>-Xnocompile</arg>
</args>
<wsdlUrls>
<wsdlUrl>http://my.us:61168/MyProxy.svc?wsdl</wsdlUrl>
</wsdlUrls>
</configuration>
</execution>

早些时候它可以工作,但突然停止工作了。我这边没有做任何改变。

Java 1.7

Netbeans 8.1

最佳答案

这是运行eclipse的java版本的问题。在某些情况下它会异常(exception)。只需在 eclipse.ini 中添加或更改 -vm 参数即可。对我来说,它适用于 1.8.0_66。

只需放入 eclipse.ini 文件行:

-vm C:\Java\JDK\bin\javaw.exe

如果“程序文件”目录中有java,请记住以非空格约定编写它,例如Progra~1及以上-vmarg

关于java - 调用 com.sun.tools.ws.wscompile.WsimportTool 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41329232/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com