Use external dependency in Jira 7.x plugin
Use external dependency in Jira 7.x plugin
With the SDK 6.3.10, I am trying to develop a plugin for Jira 7.x.
This plugin should use an external Java dependency named "maven-handling". I did the following:
First I added the dependency in the POM:
<dependency>
<groupId>some-company</groupId>
<artifactId>maven-handling</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
Then I changed the import-package entry in the maven-jira-plugin to:
<Import-Package>org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
some-company.maven_handling*;version="0.0";resolution:="optional", *
</Import-Package>
Still I get a classNotFound on the class I use from the some-company.maven_handling package. What did I miss?
some-company.maven_handling*
0.0.0
1 Answer
1
Assuming that this plugin dependency is something that you wish to bundle with your plugin, and not something already included in Jira that you wish to access:
<Import-Package>
<scope>compile</scope>
Thank you. I am running into the exception 2018-07-02 11:20:47,435 http-nio-2990-exec-4 ERROR anonymous 680x2x1 - 0:0:0:0:0:0:0:1 /secure/DemoAction!default.jspa [c.a.j.web.dispatcher.JiraWebworkActionDispatcher] Exception thrown from action 'DemoAction!default', returning 404 WebworkConfigurationNotFoundException{class=class webwork.config.XMLActionConfiguration, message='No such view mapping', name='DemoAction.actionRoles.actionRoles'} which is do not understand at all.
– JF Meier
yesterday
This entry only occurs when I try to access the plugin after I added code that uses my external dependency.
– JF Meier
yesterday
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Is the package
some-company.maven_handling*
correct? furthermore shouldn't OSGi versions always have three parts0.0.0
? Do you use the tycho-maven-plugin to build this part of OSGi ?– khmarbaise
Jun 29 at 15:27