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

Bengt Rodehav commented on KARAF-7428:
--------------------------------------

I am now trying to move to Karaf 4.4.4 and Camel 3.21.2. I still have problems 
with version ranges (I'm building on Windows). I now get:

[ERROR] Failed to execute goal 
org.apache.karaf.tooling:karaf-maven-plugin:4.4.4:features-add-to-repository 
(add-features-to-repo) on project assembly: Error populating repository: Can't 
resolve artifact org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1,2): The 
following artifacts could not be resolved: 
org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1,2) (absent): Could not 
transfer artifact org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1,2) from/to 
nexus (http://it-dl12-sto:9091/repository/public): status code: 400, reason 
phrase: Invalid repository path (400)

 

it-dl12-sto is our local Nexus server that in turn fetches artifacts from Maven 
Central.

 

This makes it impossible to build (at least on Windows). I would appreciate if 
this problem could be solved.

> karaf-maven-plugin and version ranges
> -------------------------------------
>
>                 Key: KARAF-7428
>                 URL: https://issues.apache.org/jira/browse/KARAF-7428
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.6
>            Reporter: Bengt Rodehav
>            Priority: Major
>
> I use Karaf 4.3.6 and I'm trying to upgrade our Camel version to the latest 
> (2.14.2). It turns out I get a problem with karaf-maven-plugin, goal 
> features-add-to-repository.
>  
> The new Karaf feature descriptor for Camel now starts with the following 
> three lines:
>  
>   
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3.4,3.4]/xml/features</repository>
>   
> <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
>   
> <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.3)/xml/features</repository>
>  
> But this causes the karaf-maven-plugin to try to download a file called 
> "org/apache/cxf/karaf/apache-cxf/%5B3.4,3.4%5D/apache-cxf-%5B3.4,3.4%5D-features.xml"
>  which of course fails.
>  
> I cannot determine whether this is a problem with the karaf-maven-plugin or 
> with Camel's karaf feature descriptor?
>  
> If I comment out the above three lines it seems to work (it builds anyway - 
> haven't actually tested it yet).
>  
> This has been discussed on Karaf User mailing list:
>  
> [https://www.mail-archive.com/[email protected]/msg23664.html]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to