Hm, maybe I still have not been explixit enough -

I know how to tell maven that I am using a certain JVM on the current
system, even with profiles.
But I want maven itself to switch the java version (to use another
executable) it uses - so something like:

mvn package -PJVM5
mvn package -PJVM6

This should:
include / exclude dependencies dependending on the java version (easy part)
change the JVM and compile with this version instead of the systems default
version.

Cheers,

Peter

Reply via email to