I'm a fairly new intellij user, having switched from Eclipse because of the dreadful maven support. And so far, I'm very pleased. However, I'm having one small issue and I hope someone knows the solution. When I run my maven projects from within intellij, using the maven menu, it refuses to run them with java 1.5, even though, I have set the maven runner to use 1.5 in the ide settings. Within the maven runner window, it clearly shows that it's invoking maven with 1.6. Unfortunately, I can't use 1.6 yet as there are still some pesky classes that will break if I do. So does anyone know how to really force idea's maven runner to use 1.5?
Here's what I see in my invocation window:
/usr/lib/jvm/java-6-sun-184.108.40.206/jre/bin/java -Dclassworlds.conf=/opt/maven-2.1.0/bin/m2.conf -Dmaven.home=/opt/maven-2.1.0 -Didea.launcher.port=7532 -Didea.launcher.bin.path=/opt/idea-9886/bin -Dfile.encoding=UTF-8 -classpath /opt/maven-2.1.0/boot/classworlds-1.1.jar:/opt/idea-9886/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --errors --fail-fast --no-plugin-updates --strict-checksums -s /opt/maven-2.1.0/conf/settings.xml -f /home/me/mystuff/myproject/pom.xml install