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 :
<dependency> <groupId>xstream</groupId> <artifactId>xstream</artifactId> <version>1.2.2</version> <scope>provided</scope> </dependency>
it just don't work, plugin can't find and load xstream classes in runtime.
How to resolve this issue?
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.