You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Vladimir Smirnov (JIRA)" <ji...@apache.org> on 2017/05/15 15:26:04 UTC

[jira] [Commented] (FELIX-2809) maven-bundle-plugin should automatically add "resolution:=optional" to imported packages that are in optional maven dependencies.

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

Vladimir Smirnov commented on FELIX-2809:
-----------------------------------------

It still doesn't work in my case. Next pom.xml results in missing 'resolution=optional' near 'net.sf.cglib.proxy' package

<project ...>
    <modelVersion>4.0.0</modelVersion>
    <groupId>test</groupId>
    <artifactId>test2</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>test2</name>
    <packaging>bundle</packaging>

    <dependencies>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-pool2</artifactId>
            <scope>compile</scope>
            <version>2.4.2</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>3.3.0</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Embed-Dependency>*</Embed-Dependency>
                        <Embed-Transitive>true</Embed-Transitive>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


> maven-bundle-plugin should automatically add "resolution:=optional" to imported packages that are in optional maven dependencies. 
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2809
>                 URL: https://issues.apache.org/jira/browse/FELIX-2809
>             Project: Felix
>          Issue Type: Improvement
>            Reporter: Hiram Chirino
>            Assignee: Hiram Chirino
>             Fix For: maven-bundle-plugin-2.3.4
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)