失敗,下面的配置完美的作品,當我建立一個使用命令mvn clean package
我的項目,但是當我在詹金斯運行相同的命令會產生錯誤消息(底部)。我試圖通過改變<configuration>
而沒有任何運氣來重新配置。JAXB2 - Maven的插件上詹金斯
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<arguments>-extension -npa -b ${project.basedir}/src/main/xsd/global.xjb</arguments>
</configuration>
</plugin>
</plugins>
</build>
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:xjc (default) on project xxx: unrecognized parameter -
cause : unrecognized parameter -
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:xjc (default) on project xxx: unrecognized parameter -
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)