A Class Incompatible error when using maven-jira-plugin

Hi, 

    Recently I met a very queer error. When I use maven-jira-plugin to bundle my plugin project, I met a error like below:

[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
[ERROR] -----------------------------------------------------
[ERROR] realm = extension>com.atlassian.maven.plugins:maven-jira-plugin:6.3.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/user/.m2/repository/com/atlassian/maven/plugins/maven-jira-plugin/6.3.2/maven-jira-plugin-6.3.2.jar
[ERROR] urls[1] = file:/home/user/.m2/repository/com/atlassian/plugins/rest/atlassian-rest-doclet/2.9.5/atlassian-rest-doclet-2.9.5.jar
[ERROR] urls[2] = file:/home/user/.m2/repository/com/atlassian/plugins/rest/atlassian-rest-common/2.9.5/atlassian-rest-common-2.9.5.jar
[ERROR] urls[3] = file:/home/user/.m2/repository/com/atlassian/plugins/rest/com.atlassian.jersey-library/2.9.5/com.atlassian.jersey-library-2.9.5.pom
[ERROR] urls[4] = file:/home/user/.m2/repository/com/sun/jersey/jersey-server/1.8-atlassian-13/jersey-server-1.8-atlassian-13.jar
[ERROR] urls[5] = file:/home/user/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[6] = file:/home/user/.m2/repository/com/sun/jersey/jersey-json/1.8-atlassian-13/jersey-json-1.8-atlassian-13.jar
[ERROR] urls[7] = file:/home/user/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar
[ERROR] urls[8] = file:/home/user/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.1/jackson-jaxrs-1.9.1.jar
[ERROR] urls[9] = file:/home/user/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.1/jackson-xc-1.9.1.jar
[ERROR] urls[10] = file:/home/user/.m2/repository/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar
[ERROR] urls[11] = file:/home/user/.m2/repository/com/atlassian/security/atlassian-secure-random/3.1.5/atlassian-secure-random-3.1.5.jar
[ERROR] urls[12] = file:/home/user/.m2/repository/com/sun/jersey/jersey-core/1.8-atlassian-13/jersey-core-1.8-atlassian-13.jar
[ERROR] urls[13] = file:/home/user/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
[ERROR] urls[14] = file:/home/user/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar
[ERROR] urls[15] = file:/home/user/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
[ERROR] urls[16] = file:/home/user/.m2/repository/org/hibernate/hibernate-validator/4.0.2.GA/hibernate-validator-4.0.2.GA.jar
[ERROR] urls[17] = file:/home/user/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
[ERROR] urls[18] = file:/home/user/.m2/repository/com/atlassian/jersey/atlassian-jersey-restdoc/1.0.3/atlassian-jersey-restdoc-1.0.3.jar
[ERROR] urls[19] = file:/home/user/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
[ERROR] urls[20] = file:/home/user/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar
[ERROR] urls[21] = file:/home/user/.m2/repository/com/sun/jersey/contribs/wadl-resourcedoc-doclet/1.8-atlassian-13/wadl-resourcedoc-doclet-1.8-atlassian-13.jar
[ERROR] urls[22] = file:/home/user/.m2/repository/com/atlassian/annotations/atlassian-annotations/0.9/atlassian-annotations-0.9.jar
[ERROR] urls[23] = file:/home/user/.m2/repository/com/atlassian/maven/archetypes/jira-plugin-archetype/6.3.2/jira-plugin-archetype-6.3.2.jar
[ERROR] urls[24] = file:/home/user/.m2/repository/com/atlassian/maven/plugins/maven-amps-plugin/6.3.2/maven-amps-plugin-6.3.2.jar
[ERROR] urls[25] = file:/home/user/.m2/repository/com/atlassian/core/atlassian-core/4.0/atlassian-core-4.0.jar
[ERROR] urls[26] = file:/home/user/.m2/repository/com/atlassian/profiling/atlassian-profiling/1.3/atlassian-profiling-1.3.jar
[ERROR] urls[27] = file:/home/user/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar
[ERROR] urls[28] = file:/home/user/.m2/repository/p6spy/p6spy/1.3/p6spy-1.3.jar
[ERROR] urls[29] = file:/home/user/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar
[ERROR] urls[30] = file:/home/user/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
[ERROR] urls[31] = file:/home/user/.m2/repository/osuser/osuser/1.0-dev-log4j-1.4jdk-7Dec05/osuser-1.0-dev-log4j-1.4jdk-7Dec05.jar
[ERROR] urls[32] = file:/home/user/.m2/repository/opensymphony/propertyset/1.3-21Nov03/propertyset-1.3-21Nov03.jar
[ERROR] urls[33] = file:/home/user/.m2/repository/opensymphony/sitemesh/2.3/sitemesh-2.3.jar
[ERROR] urls[34] = file:/home/user/.m2/repository/dom4j/dom4j/1.4/dom4j-1.4.jar
[ERROR] urls[35] = file:/home/user/.m2/repository/jaxen/jaxen/1.0-FCS/jaxen-1.0-FCS.jar
[ERROR] urls[36] = file:/home/user/.m2/repository/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.jar
[ERROR] urls[37] = file:/home/user/.m2/repository/msv/msv/20020414/msv-20020414.jar
[ERROR] urls[38] = file:/home/user/.m2/repository/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar
[ERROR] urls[39] = file:/home/user/.m2/repository/isorelax/isorelax/20020414/isorelax-20020414.jar
[ERROR] urls[40] = file:/home/user/.m2/repository/opensymphony/oscore/2.2.7/oscore-2.2.7.jar
[ERROR] urls[41] = file:/home/user/.m2/repository/log4j/log4j/1.2.7/log4j-1.2.7.jar
[ERROR] urls[42] = file:/home/user/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
[ERROR] urls[43] = file:/home/user/.m2/repository/mockobjects/alt-jdk1.3/0.07/alt-jdk1.3-0.07.jar
[ERROR] urls[44] = file:/home/user/.m2/repository/oscache/oscache/DEV/oscache-DEV.jar
[ERROR] urls[45] = file:/home/user/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] urls[46] = file:/home/user/.m2/repository/biz/aQute/bnd/biz.aQute.bndlib/2.4.1-pr-916-atlassian-002/biz.aQute.bndlib-2.4.1-pr-916-atlassian-002.jar
[ERROR] urls[47] = file:/home/user/.m2/repository/junit/junit/4.12/junit-4.12.jar
[ERROR] urls[48] = file:/home/user/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] urls[49] = file:/home/user/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
[ERROR] urls[50] = file:/home/user/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
[ERROR] urls[51] = file:/home/user/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[52] = file:/home/user/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[53] = file:/home/user/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[54] = file:/home/user/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[55] = file:/home/user/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[56] = file:/home/user/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.jar
[ERROR] urls[57] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.19/plexus-interpolation-1.19.jar
[ERROR] urls[58] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[59] = file:/home/user/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[60] = file:/home/user/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[61] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
[ERROR] urls[62] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
[ERROR] urls[63] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
[ERROR] urls[64] = file:/home/user/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
[ERROR] urls[65] = file:/home/user/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar
[ERROR] urls[66] = file:/home/user/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar
[ERROR] urls[67] = file:/home/user/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
[ERROR] urls[68] = file:/home/user/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[69] = file:/home/user/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
[ERROR] urls[70] = file:/home/user/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[71] = file:/home/user/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
[ERROR] urls[72] = file:/home/user/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
[ERROR] urls[73] = file:/home/user/.m2/repository/com/atlassian/amps/plugin-module-codegen-maven-client/6.3.2/plugin-module-codegen-maven-client-6.3.2.jar
[ERROR] urls[74] = file:/home/user/.m2/repository/com/atlassian/amps/plugin-module-codegen-engine/6.3.2/plugin-module-codegen-engine-6.3.2.jar
[ERROR] urls[75] = file:/home/user/.m2/repository/com/atlassian/amps/plugin-module-codegen-api/6.3.2/plugin-module-codegen-api-6.3.2.jar
[ERROR] urls[76] = file:/home/user/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
[ERROR] urls[77] = file:/home/user/.m2/repository/com/atlassian/fugue/fugue/1.0/fugue-1.0.jar
[ERROR] urls[78] = file:/home/user/.m2/repository/com/googlecode/guava-osgi/guava-osgi/10.0.1/guava-osgi-10.0.1.jar
[ERROR] urls[79] = file:/home/user/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar
[ERROR] urls[80] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[81] = file:/home/user/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar
[ERROR] urls[82] = file:/home/user/.m2/repository/com/atlassian/maven/archetypes/refapp-plugin-archetype/6.3.2/refapp-plugin-archetype-6.3.2.jar
[ERROR] urls[83] = file:/home/user/.m2/repository/com/dmurph/JGoogleAnalyticsTracker/1.2.1-atlassian/JGoogleAnalyticsTracker-1.2.1-atlassian.jar
[ERROR] urls[84] = file:/home/user/.m2/repository/org/slf4j/slf4j-nop/1.6.2/slf4j-nop-1.6.2.jar
[ERROR] urls[85] = file:/home/user/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar
[ERROR] urls[86] = file:/home/user/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar
[ERROR] urls[87] = file:/home/user/.m2/repository/com/atlassian/amps/standalone/6.3.2/standalone-6.3.2.pom
[ERROR] urls[88] = file:/home/user/.m2/repository/com/atlassian/plugins/atlassian-plugins-osgi-testrunner/1.2.3/atlassian-plugins-osgi-testrunner-1.2.3.jar
[ERROR] urls[89] = file:/home/user/.m2/repository/org/apache/wink/wink-client/1.1.3-incubating/wink-client-1.1.3-incubating.jar
[ERROR] urls[90] = file:/home/user/.m2/repository/org/apache/wink/wink-common/1.1.3-incubating/wink-common-1.1.3-incubating.jar
[ERROR] urls[91] = file:/home/user/.m2/repository/org/apache/geronimo/specs/geronimo-annotation_1.1_spec/1.0/geronimo-annotation_1.1_spec-1.0.jar
[ERROR] urls[92] = file:/home/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/jaxb-impl-2.2.1.1.jar
[ERROR] urls[93] = file:/home/user/.m2/repository/com/google/code/gson/gson/2.2.2-atlassian-1/gson-2.2.2-atlassian-1.jar
[ERROR] urls[94] = file:/home/user/.m2/repository/com/atlassian/upm/upm-api/2.15/upm-api-2.15.jar
[ERROR] urls[95] = file:/home/user/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar
[ERROR] urls[96] = file:/home/user/.m2/repository/com/google/javascript/closure-compiler/rr2079.1/closure-compiler-rr2079.1.jar
[ERROR] urls[97] = file:/home/user/.m2/repository/args4j/args4j/2.0.12/args4j-2.0.12.jar
[ERROR] urls[98] = file:/home/user/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar
[ERROR] urls[99] = file:/home/user/.m2/repository/org/json/json/20090211/json-20090211.jar
[ERROR] urls[100] = file:/home/user/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[101] = file:/home/user/.m2/repository/com/googlecode/jarjar/jarjar/1.1/jarjar-1.1.jar
[ERROR] urls[102] = file:/home/user/.m2/repository/com/yahoo/platform/yui/yuicompressor/2.4.7/yuicompressor-2.4.7.jar
[ERROR] urls[103] = file:/home/user/.m2/repository/rhino/js/1.6R7/js-1.6R7.jar
[ERROR] urls[104] = file:/home/user/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ERROR] urls[105] = file:/home/user/.m2/repository/com/googlecode/htmlcompressor/htmlcompressor/1.4/htmlcompressor-1.4.jar
[ERROR] urls[106] = file:/home/user/.m2/repository/org/apache/wink/wink-client-apache-httpclient/1.1.3-incubating/wink-client-apache-httpclient-1.1.3-incubating.jar
[ERROR] urls[107] = file:/home/user/.m2/repository/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar
[ERROR] urls[108] = file:/home/user/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[109] = file:/home/user/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar
[ERROR] urls[110] = file:/home/user/.m2/repository/org/apache/maven/archetype/archetype-common/2.2/archetype-common-2.2.jar
[ERROR] urls[111] = file:/home/user/.m2/repository/org/apache/maven/archetype/archetype-catalog/2.2/archetype-catalog-2.2.jar
[ERROR] urls[112] = file:/home/user/.m2/repository/org/apache/maven/archetype/archetype-descriptor/2.2/archetype-descriptor-2.2.jar
[ERROR] urls[113] = file:/home/user/.m2/repository/org/apache/maven/archetype/archetype-registry/2.2/archetype-registry-2.2.jar
[ERROR] urls[114] = file:/home/user/.m2/repository/net/sourceforge/jchardet/jchardet/1.0/jchardet-1.0.jar
[ERROR] urls[115] = file:/home/user/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] urls[116] = file:/home/user/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[117] = file:/home/user/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[118] = file:/home/user/.m2/repository/org/springframework/spring-jdbc/4.3.2.RELEASE/spring-jdbc-4.3.2.RELEASE.jar
[ERROR] urls[119] = file:/home/user/.m2/repository/org/springframework/spring-beans/4.3.2.RELEASE/spring-beans-4.3.2.RELEASE.jar
[ERROR] urls[120] = file:/home/user/.m2/repository/org/springframework/spring-core/4.3.2.RELEASE/spring-core-4.3.2.RELEASE.jar
[ERROR] urls[121] = file:/home/user/.m2/repository/org/springframework/spring-tx/4.3.2.RELEASE/spring-tx-4.3.2.RELEASE.jar
[ERROR] urls[122] = file:/home/user/.m2/repository/org/twdata/maven/mojo-executor/1.5.2/mojo-executor-1.5.2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]

 

My maven-jira-plugin configuration is as below:

<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>

 

I'm not sure if this is a bug of this plugin. Does anyone have similar problem? 

BTW, does anyone know how to skip the test-jar of this plugin?

 

 

1 answer

Seems it is caused mis-configuration of the dependency settings  of atlassian-rest-doclet plugin in the plugin configuration, after update to recent 5.0.1 version, problem solved.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

59 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you