Maven project dependecy against JDK version
Posted
by Andrea Polci
on Stack Overflow
See other posts from Stack Overflow
or by Andrea Polci
Published on 2010-04-02T14:06:23Z
Indexed on
2010/04/02
14:23 UTC
Read the original article
Hit count: 224
I have projects that need to be build with a specific version of the JDK.
The problem isn't in the source and target parameters but in the jars of the runtime used during compilation. In some cases I get a compilation error if I try to compile with the wrong JDK, but sometimes the build is successful and I get runtime errors when using the jars.
For example in eclipse I have the ability to establish the execution enviroment for the project in the .classpath file.
Is there a way to handle such situation in maven?
What I would like to have is the ability to handle JRE dependency like other dependencies of the project in the POM file.
© Stack Overflow or respective owner