Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Third party jars with conflicting dependencies

Spencer Michaels
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2018

I'm writing a Bamboo plugin that relies on a 3rd-party jar. This jar itself uses a version of the Spring framework, which causes a conflict with the version that Bamboo uses. I need to figure out how to resolve this dependency conflict.

I have installed my jar into my local maven repo and added it as a compile-scope dependency:

 <dependency>
<groupId>com.my.jar</groupId>
<artifactId>jarId</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

I have also added a plugin dependency in the maven-bamboo-plugin configuration.

<pluginDependencies>
<pluginDependency>
<groupId>com.my.jar</groupId>
<artifactId>jarId</artifactId>
</pluginDependency>
</pluginDependencies>

The result is that my plugin fails to load because of several springframework-related class conflicts, so it looks like the jar is getting bundled with the plugin, but the excludes are getting ignored. What do I need to do to resolve this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events