Hi,

I'm trying to upgrade from maven-bundle-plugin 2.2.0 to 2.3.4 (they
both use Bnd-1.15.0), and I'm checking there is no regression in the
generated MANIFEST.MF.
As far as I can see, Import-Package is not calculated as I expected. I
suspect Bundle-ClassPath is not read anymore. Was there any change in
this revision?

I've written a small example:

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.3.4</version>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <goals>
                            <goal>manifest</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <instructions>

<Export-Package>org.adrien.exprt;version="1.4.0-SNAPSHOT"</Export-Package>

<Bundle-ClassPath>.,lib/minimal-dependancy-1.4.0-SNAPSHOT.jar</Bundle-ClassPath>
                    </instructions>
                </configuration>
            </plugin>

- "minimal-dependancy.jar" contains a reference to "org.antlr.tool" so
I expect to see it in Import-Package.
- my artifact uses "org.adrien.imprted" from "minimal-dependancy.jar",
so I don't expect to see it in Import-Package.

Unfortunately:
Old Import-Package: org.adrien.exprt,org.antlr.analysis,org.antlr.tool
New Import-Package:
org.adrien.exprt;version="[1.4,2)",org.adrien.imprted,org.antlr.analysis

See the diff: 
https://bitbucket.org/aragot/discrepancywithbndlib/changeset/670d96221620
And the full example:
https://bitbucket.org/aragot/discrepancywithbndlib/src/670d96221620

-Does this mean Bundle-ClassPath is not read anymore and was something
changed in maven-bundle-plugin 2.3.4?
-Also, I wouldn't expect to see "org.adrien.exprt", because I
explicitly export it. Does anyone know why this class is imported?

Thank you very much,
Adrien

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to