karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-1584) karaf-maven-plugin ignores provided scope on dependency
Date Fri, 26 Sep 2014 08:23:34 GMT

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

Jean-Baptiste Onofré commented on KARAF-1584:

The features-generate-descriptor goal now supports ignoreScopeProvided (false by default).
If you set ignoreScopeProvided to true, the provided dependency won't be included in features.xml.

> karaf-maven-plugin ignores provided scope on dependency
> -------------------------------------------------------
>                 Key: KARAF-1584
>                 URL: https://issues.apache.org/jira/browse/KARAF-1584
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0.RC1
>            Reporter: Brian Topping
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0, 3.0.2
> A dependency expressed in a project POM with {{provided}} scope should not be rendered
in a features.xml by {{karaf-maven-plugin:features-generate-descriptor}}.  
> A good example of this is slf4j-api.  A generated feature that lists that dependency
will not load for some reason that doesn't particularly matter, but there needs to be a way
to both express the dependency for compilation as well as not have the dependency listed in
the feature.  {{provided}} scope seems to be the most accurate way to do that.
> The IT test in KARAF-1537 named test-aggregate-features demonstrates what I am talking
> I'll submit a patch after KARAF-1537 is applied.

This message was sent by Atlassian JIRA

View raw message