Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,916
Community Members
 
Community Events
168
Community Groups

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 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

304 views 0 7
Read article

Atlassian Community Events