jaroslav.tulach at oracle.com
Thu Sep 5 04:34:37 PDT 2013
Dne Čt 5. září 2013 11:39:16, Neil Bartlett napsal(a):
> >> and use
> >> maven-enforcer-plugin  to ban transitive dependencies
> > That might work. Explicitly specify what you compile against is a good
> > idea. NetBeans Platform (Ant based) build system is using it for a decade
> > (after switching from the previously transitive mode) and there are no
> > problems with it as far as I can tell.
> I continue to believe that the root of this problem is that the Maven
> dependency model cannot work for runtime dependencies. "Whole module"
> dependencies such as used in Maven, in previous Jigsaw/JSR277
> prototypes, and in OSGi's discouraged Require-Bundle instruction
> always lead to excessive fanout and version clashes.
As splitted packages are rare (and maybe even unsupported in some versions of
OSGI), then a package import basically means non-transitive dependency.
You may realize that your belief is a specialization of my general
observation. As such it is of no surprise, that if non-transitive JAR
(compilation) dependencies work sufficiently, import package works for you in
Import-Package seems to be a solution of the transtivity issues, but a bit too
narrow and certainly not the only one.
More information about the jigsaw-dev