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

Plugin dependency to multiple versions?


Is it possible to build a plugin with a dependency to any other plugin compatible to two different major versions?

The SDK builds a manifest file using the maven dependency major version. So I cannot create a plugin which is compatible to two major versions of another plugin. I tried a lot of configurations without success (e.g. Require-Bundle, Import-Package, DynamicImport-Package in pom.xml; Import-Package in atlassian-plugin.xml; using jar or obr files). In this special case I need a dependency to the Confluence Create Content plugin (Confluence bundled one), which is bundled in version 2 until CF 5.4, but in version 4 since the new CF 5.5. The error message looks like:

missing requirement [205.0] package; (&(package=com.atlassian.confluence.plugins.createcontent.actions)(version>=2.0.0)(!(version>=3.0.0)))

Any idea?

2 answers

1 accepted

1 vote
Answer accepted

The following solution seems to be working:


Note the addional "*"-package, otherwise all other imported packages thrown out. Adding "optional" was also necessary - the package identification mechanism of the Atlassian SDK also mark all packages in my plugins as optional within the generated manifest. Otherwise you get other error messages regarding dependenies during installation of the plugin.

Some documentation:

Hope this helps anyone running into the same problem.

The additional "*" is the solution. This helped ma a lot - although I don't have a clue why :) Thanks a lot!

Hi Mirko,

Have you tried using ImportPackage (or DynamicImportPackage) with a specified range including the two versions? As it seems by the error mesage the requirement is for versions [2.0.0,3.0.0). You may try some like this - from 2.0.0 to 5.0.0 exclusive:


Hi George,

Thanks for you answer! In the meantime I found a solution that works. Yes, adding this is correct!!" But all other imported packages thrown out. See my answer for the complete solution.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted 5 hours ago in Industry Groups

Upcoming Team Tour Government Symposium in Washington D.C.

Calling all Community members from the Washington D.C. area! Atlassian’s Team Tour is heading to your city to host a Government Symposium on May 1st. Join our team and other government agencies to le...

11 views 0 1
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