Provide dependency from lib/ directory

Hi! I want include XStream library in my plugin.
I don't want use <scope>compile</scope> because I see that Jira include this library (xstream-1.3.1.jar) in WEB-INF/lib folder. But when I write something like that :


it just don't work, plugin can't find and load xstream classes in runtime.

How to resolve this issue?

1 answer

1 accepted

This widget could not be displayed.

Jar files under WEB-INF/lib are not available to OSGI plugins. They have a class path or their own and hence you need to give the scope as compile. There is no other option here.

Well, the only other option is to create a v1 plugin. That will work but will take away all the advantages of v2 plugins away, like dynamic deployment.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 6 hours ago in Europe

ABUG-20 Livestream: The 20th Atlassian Belgian User Group (including a Summit 2018 Recap)

You can't/couldn't make it to our User Group today? Don't worry, we'll be live streaming and recording the event for your sake. Comments, questions, basically any reactions can be posted below! New...

35 views 0 0
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