This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This issue was originally reported by Henrik Lynggaard in 15/Mar/07 at codehaus.org - see more details at http://jira.codehaus.org/browse/MEVENIDE-503 Environment: Alll =========== Description: =========== In a normal netbeans project I can use the "Java Platform Manager" to tell netbeans which jdk to compile with regardless of the jdk I have started Netbeans with. Maven2 /mevenide based projects does not offer this possibility and thus all maven build happens with the jdk i used to start netbeans with. This is a big problem for me, as I have code that needs to be compiled with jdk 1.4.2, and my netbeans runs under jdk6. ---------------------------------------------- Comment by Milos Kleint [ 16/Mar/07 02:01 AM ] ---------------------------------------------- unfortunately that kind of thing is not currently possible to do in maven consistently AFAIK. I've commented on http://jira.codehaus.org/browse/MNG-46. After that one is done in maven, we can easily implement support for that in maven. However currently it's rather complex task as one would need to configure multiple plugins (like compiler, test, exec, ....). That's where I don't dare to go and do all that in automated way. you can set the plugins you care about manually in the pom, compiler plugin for example has the <executable> parameter that allows you to link to the 1.4 jdk for compilation. ---------------------------------------------- Comment by Milos Kleint [ 13/Jul/07 08:03 AM ] ---------------------------------------------- a duplicate issue is filed in netbeans.org issuezilla: http://www.netbeans.org/issues/show_bug.cgi?id=104974 ---------------------------------------------- Comment by Milos Kleint [ 26/Oct/07 02:59 AM ] ---------------------------------------------- issue #104974 described a workaround introduced for maven2 support in 6.0. ---------------------------------------------- Comment by Milos Kleint [ 18/Apr/08 08:06 AM ] ---------------------------------------------- will be handled by maven via the toolchains proposal: http://docs.codehaus.org/display/MAVEN/Toolchains once that gets implemented we can add the support in the IDE.
duplicate of #104974 *** This issue has been marked as a duplicate of 104974 ***