-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Hi Jorg
Hi Jon,
> 
> Yeah just set up profiles for Java5 and java6 each specifying the unique 
> dependencies for the jdk.
So what you are saying is that it really works to declare a dependency within a
profile section? I have NOT tried this again since maven 2.0.4. but it did not
work properly then.
And shouldn't there be POMs with packaging "pom" in central repo to do this for
stax, jsr250, etc., so it is a centralized feature?
Then everybody could just add a dependency on "stax-profile" (or however one
would call it) with type "pom" and that is all.
> 
> Jon 
Thanks so far...
  Jörg
> 
> -----Original Message-----
> From: Joerg Hohwiller [mailto:[EMAIL PROTECTED] 
> Sent: 04 February 2008 21:13
> To: Maven Users List
> Subject: conditional dependencies
> 
> Hi there,
> 
> I am using conditional dependencies in the form that I use variables in the 
> dependencies and profiles to set these variables.
> 
> Now I currently wonder what to do if a dependency is only required under 
> specific situations. E.g. stax or jsr250 is included in java6 while you need 
> dependencies on external artifacts for java5.
> Has someone experience with that?
> Is it best to use a variable for the scope and set it to "provided" for java6?
> Or is it possible to add a dependency into the profile section?
> 
> Thanks
>    Jörg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> This email is from Elsevier Limited, a company registered in England and 
> Wales with company number 1982084,
> whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford, 
> OX5 1GB, United Kingdom.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqi63mPuec2Dcv/8RAqbhAJ0XS6VBZWDHiW7YcRwhF3jZ8c+uygCfcuj+
KyKGgIxxrLJR2zeEVOdRFTw=
=Glsg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to