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

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

It's normal: by default only non runtime/provided dependencies are considered.

If you want to take any dependency (whatever the scope is), you have to use 
ignoreScopeProvided option to true

The runtime dependencies should be taken but flagged with dependency="true".

Can you test with ignoreScopeProvided true ?
Same behavior ?



> features-generate-descriptor ignoring runtime dependencies
> ----------------------------------------------------------
>
>                 Key: KARAF-3597
>                 URL: https://issues.apache.org/jira/browse/KARAF-3597
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.3
>         Environment: Apache Maven 3.2.5 
> (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
> Maven home: /usr/local/Cellar/maven/3.2.5/libexec
> Java version: 1.7.0_67, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"
>            Reporter: Damian ONeill
>            Assignee: Jean-Baptiste Onofré
>              Labels: features-generate-descriptor
>
> When running the following command 
> $ mvn -U karaf:features-generate-descriptor
> The generated feature.xml file does not contain any bundle definitions for 
> dependencies defined with scope runtime.
> For e.g. 
>  <dependencies>
>         <dependency>
>             <groupId>javax.xml.bind</groupId>
>             <artifactId>jaxb-api</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>com.sun.xml.bind</groupId>
>             <artifactId>jaxb-impl</artifactId>
>             <scope>runtime</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.jvnet.jaxb2_commons</groupId>
>             <artifactId>jaxb2-basics-runtime</artifactId>
>         </dependency>
>     </dependencies>
> results in 
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1"; 
> name="resourcesModel">
>     <feature name="resourcesModel" version="6.0-SNAPSHOT" 
> description="resourcesModel">
>         <details>9001 is the proNX brand name for the EMS Core.</details>
>         <bundle>wrap:mvn:javax.xml.bind/jaxb-api/2.1</bundle>
>         <bundle>wrap:mvn:javax.xml.stream/stax-api/1.0-2</bundle>
>         <bundle>wrap:mvn:javax.activation/activation/1.1</bundle>
>         
> <bundle>mvn:org.jvnet.jaxb2_commons/jaxb2-basics-runtime/0.6.4</bundle>
>     </feature>
> </features>
> Note no bundle definition for jaxb-impl defined with runtime scope above.



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

Reply via email to