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

Jean-Baptiste Onofré commented on KARAF-971:
--------------------------------------------

Pax URL seems to support 
<repository>mvn:org.apache.cxf.karaf/apache-cxf/[2,3)/xml/features</repository>.

In the features service, we can just check if an URL matching the pattern is 
not already registered. If it's the case, we don't do anything (we use the 
existing registered URL), if not, we resolve the repository URL.
                
> Add support for version ranges in features descriptor <repository/> element
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-971
>                 URL: https://issues.apache.org/jira/browse/KARAF-971
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 2.2.4
>            Reporter: Gert Vanthienen
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>
> Some features include a <repository/> element to refer to another feature 
> descriptor.  For example: 
> http://search.maven.org/remotecontent?filepath=org/apache/camel/karaf/apache-camel/2.8.2/apache-camel-2.8.2-features.xml
>  contains a reference to the CXF features descriptor. 
> For referring to the cxf feature, it already uses a version range [2.4, 2.6) 
> and if you put the same version range on the repository element URL, it would 
> just get resolved by Pax Url Maven support.  
> It would be good if the features service would first check for a matching 
> features descriptor - if there's already a matching descriptor installed, it 
> could just use the existing and skip/ignore the repository resolution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to