karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3722) Feature resolver change bundles package export
Date Wed, 13 May 2015 10:42:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541710#comment-14541710
] 

Guillaume Nodet commented on KARAF-3722:
----------------------------------------

The following patch seems to fix the problem.
The javax.annotation bundle is still installed because it's not listed with the {{dependency="true"}}
flag in the cxf feature, but it's not actually used.

{code}
diff --git a/assemblies/apache-karaf/pom.xml b/assemblies/apache-karaf/pom.xml
index 0c90e0a..6d3aad5 100644
--- a/assemblies/apache-karaf/pom.xml
+++ b/assemblies/apache-karaf/pom.xml
@@ -189,6 +189,7 @@
                         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/${servicemix.specs.version};type:=endorsed;export:=true</library>
                         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/${servicemix.specs.version};type:=endorsed;export:=true</library>
                         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.2/${servicemix.specs.version};type:=endorsed;export:=true</library>
+                        <library>mvn:javax.annotation/javax.annotation-api/1.2;type:=endorsed;export:=true</library>
 
                         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activator/${servicemix.specs.version};type:=default;export:=true</library>
                         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.locator/${servicemix.specs.version};type:=default;export:=true</library>
{code}

> Feature resolver change bundles package export
> ----------------------------------------------
>
>                 Key: KARAF-3722
>                 URL: https://issues.apache.org/jira/browse/KARAF-3722
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.0.M3
>            Reporter: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 4.0.0.M3
>
>         Attachments: testcase.tar.gz
>
>
> With latest 4.0.0-SNAPSHOT, when we code:
> {code}
> feature:repo-add cxf 3.1.1-SNAPSHOT
> feature:install cxf
> {code}
> and check the exports of the CXF security bundle (with bundle ID 93 on my box), we have:
> {code}
> imports -b 93
> org.opensaml.saml.common                       | [3.1.0,4.0.0) | resolved | 93 | org.apache.cxf.cxf-rt-ws-security
> org.opensaml.saml.saml1.core                   | [3.1.0,4.0.0) | resolved | 93 | org.apache.cxf.cxf-rt-ws-security
> org.opensaml.saml.saml2.core                   | [3.1.0,4.0.0) | resolved | 93 | org.apache.cxf.cxf-rt-ws-security
> …..
> net.sf.ehcache                                 | [2.5.0,3.0.0) | resolved | 93 | org.apache.cxf.cxf-rt-ws-security
> net.sf.ehcache.config                          | [2.5.0,3.0.0) | resolved | 93 | org.apache.cxf.cxf-rt-ws-security
> {code}
> Now, we install the cxf-sts feature and do the same thing:
> {code}
> feature:install cxf-sts
> imports -b 93
> {code}
> the optional imports are no longer resolver (causing NoClassDefFound cxf-rt-ws-security
for instance).
> It looks like the resolver change the export/resolution.
> It's an important regression IMHO that we have to address.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message