使用maven-jira-plugin时出现Class Incompatible错误

时间:2017-10-11 03:00:26

标签: java maven jira jira-plugin

最近我遇到了一个非常奇怪的错误。当我使用maven-jira-plugin捆绑我的插件项目时,我遇到了如下错误:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.3.2:test-jar (default-test-jar) on project step-bugzilla-plugin: Execution default-test-jar of goal com.atlassian.maven.plugins:maven-jira-plugin:6.3.2:test-jar failed: An API incompatibility was encountered while executing com.atlassian.maven.plugins:maven-jira-plugin:6.3.2:test-jar: java.lang.IncompatibleClassChangeError: class com.atlassian.maven.plugins.amps.util.TestClassVisitor has interface org.objectweb.asm.ClassVisitor as super class

我的maven-jira-plugin配置如下:

<plugin>
   <groupId>com.atlassian.maven.plugins</groupId>
   <artifactId>maven-jira-plugin</artifactId>
   <version>6.3.2</version>
   <extensions>true</extensions>
   <configuration>
      <allowGoogleTracking>false</allowGoogleTracking>
      <productVersion>7.3.6</productVersion>
      <productDataVersion>7.3.6</productDataVersion>
      <shutdownTimeout>60000</shutdownTimeout>
      <offline>true</offline>
      <testBundleExcludes>
         <testBundleExclude>
            <groupId>atlassian</groupId>
         </testBundleExclude>
         <testBundleExclude>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
         </testBundleExclude>
      </testBundleExcludes>
   </configuration>
   <dependencies>
      <dependency>
         <groupId>com.atlassian.plugins.rest</groupId>
         <artifactId>atlassian-rest-doclet</artifactId>
         <version>2.9.5</version>
      </dependency>
   </dependencies>
</plugin>

我不确定这是否是此插件的错误。有没有人有类似的问题? 顺便说一下,有谁知道如何跳过这个插件的测试罐?

已更新:似乎是由atlassian-rest-doclet插件的插件设置中的依赖项设置的未命中配置引起的。当更新到最近的5.0.1版本时,问题解决了。

0 个答案:

没有答案