我将一个带有模块的现有项目导入到eclipse中,这是由第三方创建的现有代码,我需要尝试和理解。但是有一个项目在mvn全新安装上失败了,并且一直出现以下错误;这似乎与one服务问题有关:
ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-
plugin:2.7.6:wsdl2java (xxxxxxxxxx) on project
xxxxxxxxxx:
com/sun/tools/xjc/BadCommandLineException:
com.sun.tools.xjc.BadCommandLineException -> [Help 1]这是使用user服务验证凭据的用户安全项目。
发布于 2018-08-01 23:19:30
如果您激活了"DEBUG"-mode for Maven和"Print exception stack traces",并且错误是BadCommandLineException的NoClassDefFoundError,那么我通过向cxf-codegen-BadCommandLineException提供一个依赖项来解决这个问题:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
...
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.4.0-b180725.0644</version>
</dependency>
</dependencies>
</plugin>https://stackoverflow.com/questions/46337684
复制相似问题