how to declare a dependency that depends of target JRE ?

2007-09-05 Thread nicolas de loof
Hello, I'm writing a shared utility project that uses backport-util-concurrent. This dependency has 3 versions, for java 1.2/1.3, java 1.4 and Java 5. How to set my POM dependencies so that projects that use my lib get the expected backport in classpath ? For now the only way I've found is to

Re: RE : how to declare a dependency that depends of target JRE ?

2007-09-05 Thread nicolas de loof
I know this jdk activation strategy but IMHO this is not safe : I'm myself using Jdk 1.5 on my computer but set the maven-compiler-plugin for target jre beeing 1.3 or 1.4. I don't want to change my JAVA_HOME evey time I start a new project, and maven2 requires Java 1.4 so this strategy cannot be