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

Steve Chapman commented on KARAF-5731:
--------------------------------------

I have avoided the problem by changing my pom.xml. I added 
<scope>runtime</scope> to all feature dependencies. Also, tried different 
versions for camel, spring etc... Also dropped most of the plugin definitions.

This new pom (attached) builds successfully with camel, cxf, activemq, hawtio 
etc

[^pom.xml]. 

> karaf.maven.plugin assembly fails to find feature that is present and 
> previously loaded
> ---------------------------------------------------------------------------------------
>
>                 Key: KARAF-5731
>                 URL: https://issues.apache.org/jira/browse/KARAF-5731
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-build
>    Affects Versions: 4.2.0
>            Reporter: Steve Chapman
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>         Attachments: builderror.txt, debugbuilderror.txt, pom.xml, pom.xml
>
>
> Following the karaf manual to create a custom karaf distribution with camel 
> pre-installed. I have followed the documented custom distribution example 
> here [https://karaf.apache.org/manual/latest/#_custom_distributions] simply 
> replacing spring/4.2.0 with camel/2.20.3. But the build fails with error 
> "could not find matching feature for spring/[4.1,5) even though spring 
> feature at version 4.2.0 is present.
> When I change the pom to add spring/4.2.0 and not camel/2.20.3 it builds 
> without errors.
> I have tried all types of variations with spring and camel levels older and 
> newer and also with leaving both spring and camel features in the build 
> together.
> pom.xml attached.
> builderror.txt is console output for a non debug 'mvn install'
> debugbuilderror.txt is console output for a 'mvn clean install' with debug.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to