【发布时间】:2014-10-08 08:29:10
【问题描述】:
我正在使用jax-ws 构建一个Java Web 服务。我使用jaxws-maven-plugin 的代码优先方法来生成wsdl。问题是我从 maven 收到以下错误,我不知道为什么需要 jax-rs 类。我正在使用 wildfly 8.1.0 bom 进行 javaee7 api 解析(我不知道它是否与 jaxws-maven-plugin 冲突)。
[ERROR] Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsgen
(generate-wsdl) on project e-chapaa-services: Execution generate-wsdl of goal
org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsgen failed: A required class was
missing while executing org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsgen:
javax/ws/rs/core/Application
插件配置如下
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>generate-wsdl</id>
<phase>process-classes</phase>
<goals>
<goal>wsgen</goal>
</goals>
<configuration>
<genWsdl>true</genWsdl>
</configuration>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: web-services maven jax-ws maven-plugin jaxws-maven-plugin