Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-549

Import-Package should not include "snapshot" from snapshot dependencies

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mcculls Stuart McCulloch
              Reporter:
              musachy musachy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: