Paul Gier wrote on Tuesday, March 20, 2007 4:40 PM:
How are transitive dependencies handled when the artifacts have a
non-default classifier? For example, I have the following dependency
tree: A - B
B - C
Now let's say I want to build a jdk1.4 version of A. So I depend on
B-jdk14.jar (B with jdk14 classifier), and B-jdk14.jar depends on
C-jdk14.jar.
Is it possible to include the C-jdk14 dependency through B?
Thanks!
This won't work by default. While you can add a dep with a classifier, it is
simply added to all others in the dep list. So the only chance you have is to
use profiles for the different JDK versions where you explicitly add those deps
in each component and a profile for the default with the artifacts without
classifier (for your default JDK). If you have more than one of the same
artifact with different (or none) classifier in your dep list - its pure chance
which one is taken by the compiler.
- Jörg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]