You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2015/11/24 17:56:10 UTC

[jira] [Closed] (FELIX-5115) Embed-Dependency ignores negative clauses

     [ https://issues.apache.org/jira/browse/FELIX-5115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch closed FELIX-5115.
-----------------------------------
    Resolution: Not A Problem

Looks related to FELIX-5070 because changing the Embed-Dependency instruction from:
{code}
Embed-Dependency:\
  !slf4j-api, *; scope=compile|runtime; type=!pom
{code}
to:
{code}
Embed-Dependency:\
  artifactId=!slf4j-api; scope=compile|runtime; type=!pom
{code}
also solves the issue.

> Embed-Dependency ignores negative clauses
> -----------------------------------------
>
>                 Key: FELIX-5115
>                 URL: https://issues.apache.org/jira/browse/FELIX-5115
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-3.0.0, maven-bundle-plugin-3.0.1
>            Reporter: Stuart McCulloch
>
> Checkout https://github.com/ops4j/org.ops4j.pax.exam2/commit/50cffc617783223462735cd8f212cdab4b1fb867 and build the core/pax-exam-container-rbc project. Notice how the final bundle incorrectly embeds the slf4j-api dependency even though the instructions in 'osgi.bnd' use a negative clause to exclude that dependency.
> Edit the maven-bundle-plugin entry in 'core/pax-exam-container-rbc/pom.xml' to use version 2.5.3 of the plugin and rebuild the project. Notice that the final bundle no longer embeds slf4j-api. This is the expected behaviour which appears to have regressed in 3.0.0, possibly via the fix for FELIX-3565



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