[
https://issues.apache.org/jira/browse/FELIX-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628653#action_12628653
]
Sahoo commented on FELIX-549:
-----------------------------
Has a decision been made about this bug? I am seeing a slightly different issue
while using maven-bundle-plugin's *manifest* goal. My project A1depends on an
OSGi artifact called A2. A2 exports a package p with version 0.3.19-SNAPSHOT.
In the Import-Package of A1, I see the version as 0.3 only! I am using v1.4.3
of the plugin.
> Import-Package should not include "snapshot" from snapshot dependencies
> ------------------------------------------------------------------------
>
> Key: FELIX-549
> URL: https://issues.apache.org/jira/browse/FELIX-549
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.0
> Reporter: musachy
> Priority: Minor
> Fix For: maven-bundle-plugin-1.6.0
>
>
> I have a jar named:
> struts2-core-2.1.3-SNAPSHOT
> and a bundle that depends on it (imported with "compile" scope). The pom
> section in the bundle is:
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <extensions>true</extensions>
> <version>1.4.0</version>
> <configuration>
> <instructions>
>
> <manifestLocation>META-INF</manifestLocation>
> <Export-Package>
>
> org.apache.struts2.osgi.admin*
> </Export-Package>
>
> <Import-Package>*,com.opensymphony.xwork2</Import-Package>
> <Bundle-Activator>
>
> org.apache.struts2.osgi.admin.MyBundleActivator
> </Bundle-Activator>
> </instructions>
> </configuration>
> </plugin>
> The generated Import-Package is:
> Import-Package: org.apache.struts2.dispatcher; version="2.1.3.SNAPSHOT"
> Which prevents the package from being resolved. (I tried exporting it as
> "2.1" and "2.1.3.SNAPSHOT"). The default Maven2OsgiConverter just converts
> "-" to "." and leaves "SNAPSHOT" in place.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.