You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Rupert Westenthaler <ru...@gmail.com> on 2012/10/18 09:31:18 UTC
Request to validate/correct STANBOL-774 related POM file changes
Hi all
Yesterday I committed changes to all modules POM files that do produce
bundles. The intension and nature of those changes are well described
by the description and comments of STANBOL-744 [1] so I will not
include those in this mail. But as I am also not very experienced with
this topic Feedback and Suggestions are very welcome.
The reason for this mail is that I ask the developers of those modules
to check/validate and when necessarily correct my changes! Please take
the time to compare the definitions in the
<Import-Package>
<Export-Package>
<Private-Package>
and compare it with the expected
Import-Package:
in the generated MANIFEST.MF file.
(/target/classes/META-INF/MANIFEST.MF). STANBOL-744 provides
information on what is expected and [2] provides the details.
Note also that explicitly adding missing packages usually does not
solve the issue (as it typically would only lead to runtime issues).
The BnD tool does a really great job in analyzing dependencies so
typically:
1. Your expectations are wrong (e.g. an exported package that is not
used in an private package of the same Bundle needs not to be
imported).
2. Dependencies of any Class in the exported package to an private
package will avoid the BdD tool to add it to list of Import-Package.
In this case you will need to adapt your dependencies or packages (you
can use STANBOL-773 for those changes).
IMHO doing this is really important before going for a 1.0 release as
after such an release most of such changes would only be possible with
a 2.* release (or via keeping a lot of @Deprecated stuff that we would
need to maintain)
best
Rupert
[1] https://issues.apache.org/jira/browse/STANBOL-774
[2] http://www.aqute.biz/Bnd/Versioning
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen