Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to fix "Unresolved constraint in bundle ..." problems with new transformerless plugins?

Arthur
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2016

Hi,

I'm getting several unresolved constraint in bundle exceptions when trying to deploy my new JIRA 7 plugin.

exceptions like this:

Unable to resolve 171.0: missing requirement [171.0]osgi.wiring.package; (osgi.wiring.package=com.ibm.uvm.tools)

I think it has something to do with the <import-package> config in pom.xml:

 

...                   
                &lt;instructions&gt;
                        &lt;Atlassian-Plugin-Key&gt;${atlassian.plugin.key}&lt;/Atlassian-Plugin-Key&gt;
                        &lt;!-- Add package to export here --&gt;
                        &lt;Export-Package&gt;&lt;/Export-Package&gt;
                        &lt;!-- Add package import here --&gt;
                        &lt;Import-Package&gt;
                         org.springframework.osgi.*;resolution:="optional", 
                         org.eclipse.gemini.blueprint.*;resolution:="optional", 
                         com.atlassian.activeobjects.external.*, 
                         com.atlassian.sal.api.*, 
                         org.apache.commons.beanutils.*, 
                         *
                        &lt;/Import-Package&gt;
                        &lt;!-- Ensure plugin is spring powered --&gt;
                        &lt;Spring-Context&gt;*&lt;/Spring-Context&gt;
                    &lt;/instructions&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;

 

What is the best method to fix these common errors? 

just adding the package that is missing in the error message? like "

com.ibm.uvm.tools" in my case?

 

thank you for your advice smile

 

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Arthur
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2017

This answer also solved my problem.

2 votes
verraf December 22, 2016

Hi,

add 

*;resolution:=optional

in the Import-Package section  instead of * and so it should work.

0 votes
Saba August 5, 2017

@Arthur did you manage to solve this? Im having the same issue

verraf August 7, 2017

Hi @Saba, have you tried my solutions?

Saba August 7, 2017

yes, and it kiinda helped! but Im running into other dependency issues. this seems to have been the beginning of a series of other issues. right now in Flex portal com.ibm.uvm.tools is marked as 

!! com.ibm.uvm.tools,version=0.0.0 from -- Cannot be resolved but is not required
TAGS
AUG Leaders

Atlassian Community Events