由于wadl-plugin问题,我的maven构建失败了,是否有人遇到过这个问题?我不知道如何解决这个问题,需要帮助来解决这个错误......
我的JDK版本:Jdk.1.7.0_60
My Maven版本:3.2.1
我的Pom.xml:
<plugin>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>maven-wadl-plugin</artifactId>
<version>${jersey.version}</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<wadlFile>${project.build.outputDirectory}/application.wadl</wadlFile>
<formatWadlFile>true</formatWadlFile>
<baseUri>http://<HostName>:<port>/<contextname> </baseUri>
<packagesResourceConfig>
<param>com.myproject.resources</param>
</packagesResourceConfig>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
</dependencies>
<wadlGenerators>
<wadlGeneratorDescription>
<className>
com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc
</className>
<properties>
<property>
<name>applicationDocsFile</name>
<value>${basedir}/src/main/resources/doc/application-doc.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
<wadlGeneratorDescription>
<className>
com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport
</className>
<properties>
<property>
<name>grammarsFile</name>
<value>${basedir}/src/main/resources/doc/application-grammars.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
<wadlGeneratorDescription>
<className>
com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport
</className>
<properties>
<property>
<name>resourceDocFile</name>
<value>${project.build.outputDirectory}/resourcedoc.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
<wadlGeneratorDescription>
<className>
myProject.MyWadlGenerator
</className>
<properties>
<property>
<name>resourceDocFile</name>
<value>${project.build.outputDirectory}/resourcedoc.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
</wadlGenerators>
</configuration>
</plugin>
错误:
[错误]无法执行目标 com.sun.jersey.contribs:maven-wadl-plugin:1.8:生成(生成)on project Myproject:执行生成目标com。 sun.jersey.contribs:maven-wadl-plugin:1.8:生成失败: A. 执行时缺少必需的类 com.sun.jersey.contribs:Maven的WADL-插件:1.8:产生: 组织/ springframework的/豆类/工厂/ ListableBeanFactory
谢谢, 孙大信