karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damian ONeill (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3597) features-generate-descriptor ignoring runtime dependencies
Date Tue, 10 Mar 2015 10:37:38 GMT
Damian ONeill created KARAF-3597:
------------------------------------

             Summary: 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


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)

Mime
View raw message