[
https://issues.apache.org/jira/browse/KARAF-3597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14369386#comment-14369386
]
Damian ONeill commented on KARAF-3597:
--------------------------------------
Thankyou Jean-Baptiste, I have tested the ignoreScopeProvided, this made no
difference, the feature file remained the same.
I will attach a pom that verifies the behavior and provides examples for each
of the scopes.
On your comment "It's normal: by default only non runtime/provided dependencies
are considered.". Can you clarify further please. I assumed that the plugin
would honor the maven dependency scope defined here -
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
and that dependencies defined as being required on the runtime, would be
included in the feature description as there will be required to resolve bundle
dependencies in the container?
Anything else you need, please ask.
Thanks,
Damian.
> 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)