Hi Jorg

Yeah just set up profiles for Java5 and java6 each specifying the unique 
dependencies for the jdk.

Jon 

-----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]

Reply via email to