当我使用命令构建我的项目时,下面的配置完美mvn clean package
运行,但是当我在 Jenkins 上运行相同的命令时,它会产生错误消息(底部)。我试图通过更改来重新配置,<configuration>
但没有任何运气。
<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)