Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Third party jars with conflicting dependencies

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
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

194 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you