Yes, you naturally need to use a compiler at least as high as the code you wish to compile in. If your Maven is running on JDK 1.4, and you wish to compile code as 1.5, you will need a 1.5 compiler. You can point to a 1.5compiler in the following way:
http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html Eric On 11/10/06, Allan Valeriano <[EMAIL PROTECTED]> wrote:
Hi all, I'm having problems setting up a new jre to run mvn install. My default java version is 1.4.2_11, but I need maven to use jre 5 for it. I've read the FAQ, but I must say the example for it is not really helpful. Could somebody give me a hand on this sending a complete example? thanks in advance Allan Valeriano
-- Eric Redmond http://codehaus.org/~eredmond