When trying to install my own addon in Jira via UPM, activation fails and the following message appears in the log:
Caused by: org.osgi.framework.BundleException: Unable to resolve com.mycompany.jira.addon.myaddon (R 297.0): missing requirement [com.mycompany.jira.addon.myaddon (R 297.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=9.0)) Unresolved requirements: [[ch.zuara.jira.addon.customerknowsremaining (R 297.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=9.0))]
What I already tried:
Do you have any other hints what could be the problem?
You have a module-info.class in your classpath likely extracted from one of your dependencies. You can set extractDependencies to false which will prevent this problem. Additionally, you can upgrade to AMPS 8.0.4 which will solve the bug that you’re experiencing.
Thank you for your hint. I tried your tips. However it was not the problem.
My colleague fixed it and told me that the problem was either compiling with Java 9 or a misconfigured Google gson dependency which caused the problem.
Nice that you were able to solve it.
Gson 2.8.6 added a module-info file (Java 9) and you had
extractDependencies property not set to false. This is exactly the problem which is tracked in AMPS-1509.
Thank you for the answer!
It took me a working day to resolve this. Regret that did not start googling right away.