-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
Jenkins 1.630
Jenkins unleash plugin 2.1.1
pom:
<plugin>
<groupId>com.itemis.maven.plugins</groupId>
<artifactId>unleash-maven-plugin</artifactId>
<version>2.2.3</version>
<dependencies>
<dependency>
<groupId>com.itemis.maven.plugins</groupId>
<artifactId>unleash-scm-provider-git</artifactId>
<version>2.0.2</version>
</dependency>
</dependencies>
</plugin>Jenkins 1.630 Jenkins unleash plugin 2.1.1 pom: <plugin> <groupId>com.itemis.maven.plugins</groupId> <artifactId>unleash-maven-plugin</artifactId> <version>2.2.3</version> <dependencies> <dependency> <groupId>com.itemis.maven.plugins</groupId> <artifactId>unleash-scm-provider-git</artifactId> <version>2.0.2</version> </dependency> </dependencies> </plugin>
Created a simple maven project, ticked Unleash, left the defaults as is, triggered the plugin, left the defaults as is:
[ERROR] Failed to execute goal com.itemis.maven.plugins:unleash-maven-plugin:2.2.3:perform (default-cli) on project promotion-parent: Execution default-cli of goal com.itemis.maven.plugins:unleash-maven-plugin:2.2.3:perform failed: An API incompatibility was encountered while executing com.itemis.maven.plugins:unleash-maven-plugin:2.2.3:perform: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.jboss.weld.AbstractCDI.select(Ljavax/enterprise/util/TypeLiteral;[Ljava/lang/annotation/Annotation;)Ljavax/enterprise/inject/Instance;" the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, org/jboss/weld/AbstractCDI, and its superclass loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm), have different Class objects for the type /annotation/Annotation;)Ljavax/enterprise/inject/Instance; used in the signature
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.itemis.maven.plugins:unleash-maven-plugin:2.2.3
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/jenkins/.m2/repository/com/itemis/maven/plugins/unleash-maven-plugin/2.2.3/unleash-maven-plugin-2.2.3.jar
[ERROR] urls[1] = file:/home/jenkins/.m2/repository/com/itemis/maven/plugins/unleash-scm-provider-git/2.0.2/unleash-scm-provider-git-2.0.2.jar