it is certainly possible, depending what part of the maven build phase the
manifest goal executes (as it needs either classes or a jarfile to analyze).
the manifest goal also doesn't do any embedding, etc. as it's meant to be
used to generate OSGi metadata for existing (non-OSGi) maven artifacts,
so you'll also see a difference there...
i see,
finding the evil dependency which is causing my problem is very
difficult because when trying to remove one of them at a time my build
breaks (maven compile error). well, it's a kind of hen/egg problem
(cannot diagnose without removing <-> removing makes diagnosis not
possible for cannot build).
that's why i try to find out the reason with getting to know the
approach from bnd better:
how does bnd analyze package dependencies? does it look at bytecode
(from classes/jars) and its import statements? what about unused
imports, are they included too? what is bnd analyzing (i guess compiled
classes, and all project's dependent jars)?
i am asking because i find it very weird that many packages
(antlr,com.sun.msv.grammar,com.sun.msv.grammar.trex) show up, though my
code does not use it. so the only point could be with external libraries
but following lets me doubt this to:
1) having had a look at external poms dependencies with never seen
before packages do not show up
2) in production currently i use maven assembly plugin, and these
package-matching libraries (like antlr -> antlr.jar) did not get
included and system works fine on runtime.
on the other hand following assumptions could be right (for i really
doubt that packages are made up by bnd tool out from nothing):
1) some pom.xml from external libraries are incorrect (they forgot some
dependencies)
2) external libraries are using unused imports and thus are included by bnd
3) my runtime system did not execute lines of code yet, which are using
ominous imported packages
--
manuel aldana
[EMAIL PROTECTED]
homepage: www.aldana-online.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]