Using "provided" scope on _both_ dependencies B->A, C->B does remove "SNAPSHOT" from Import-Package.
musachy On Thu, May 8, 2008 at 9:20 AM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Using the "provided" scope trick didn't work. Not sure if it is > because is not a direct dependency. I have 2 jars and a bundle: > > jar A: > version: 2.1.3-SNAPSHOT > > jar B: > version 1.0-SNAPSHOT > Depends on jar A > > bundle C: > Depends on B > Generated Import-Package from jar A includes "SNAPSHOT" in the version > > I added a dependency from C to A with a "provided" scope just to test > the trick, but "SNAPSHOT" is still there. > > regards > musachy > > > On Wed, May 7, 2008 at 8:35 PM, Stuart McCulloch > <[EMAIL PROTECTED]> wrote: >> 2008/5/8 Musachy Barroso <[EMAIL PROTECTED]>: >> >>> Reading BND docs, it seems like "SNAPSHOT" shouldn't be in the import at >>> all: >>> >>> "If no version or version range is specified on the import >>> instruction, the exported version will then be used though the micro >>> part and the qualifier are dropped. That is, when the exporter is >>> 1.2.3.build123, then the import version will be 1.2.3." >>> >> >> could you provide a simple testcase (inc. pom.xml) and attach it to a JIRA >> issue? >> >> https://issues.apache.org/jira/browse/FELIX/component/12311143 >> >> you might also want to read the following issue about scopes and the >> bundleplugin: >> >> https://issues.apache.org/jira/browse/FELIX-548 >> >> a lot of projects will set bundle dependencies to <scope>provided</scope> >> which >> means imports are by default unversioned, and you can version them as >> required. >> >> musachy >>> >>> On Wed, May 7, 2008 at 3:59 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote: >>> > I am using maven-bundle-plugin to generate bundle manifests. When one >>> > of the dependencies is an snapshot, the generated import-package is >>> > like: >>> > >>> > Import-Package: org.apache.struts2.dispatcher; version="2.1.3.SNAPSHOT" >>> > >>> > And it fails to resolve the package at runtime. I tried exporting the >>> > package with versions "2.1.3.SNAPSHOT" and "2.1", but none of them >>> > seem to work. Any tips on how to get this going? >>> > >>> > musachy >>> > >>> > -- >>> > "Hey you! Would you help me to carry the stone?" Pink Floyd >>> > >>> >>> >>> >>> -- >>> "Hey you! Would you help me to carry the stone?" Pink Floyd >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> -- >> Cheers, Stuart >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

