首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建失败,返回cxf-codegen-plugin

构建失败,返回cxf-codegen-plugin
EN

Stack Overflow用户
提问于 2017-09-21 15:16:14
回答 1查看 315关注 0票数 1

我将一个带有模块的现有项目导入到eclipse中,这是由第三方创建的现有代码,我需要尝试和理解。但是有一个项目在mvn全新安装上失败了,并且一直出现以下错误;这似乎与one服务问题有关:

代码语言:javascript
复制
 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服务验证凭据的用户安全项目。

EN

回答 1

Stack Overflow用户

发布于 2018-08-01 23:19:30

如果您激活了"DEBUG"-mode for Maven和"Print exception stack traces",并且错误是BadCommandLineException的NoClassDefFoundError,那么我通过向cxf-codegen-BadCommandLineException提供一个依赖项来解决这个问题:

代码语言:javascript
复制
<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>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46337684

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档