NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Leos.Bitto
Joined: 21 Jun 2010 Posts: 1
|
Posted: Mon Jun 21, 2010 8:48 am Post subject: How to configure which Java platform is used for Maven projects |
|
|
| I have a Maven project (an inherited legacy one) which I would like to open in NetBeans 6.9. I did configure the proper Maven version (2.0.7) in Tools/Options/Miscellaneous/Maven. I am able to open my project, in its properties I did set proper Java platform (JDK 1.5.0_22) in Build/Compile, and it compiles fine. However, NetBeans still uses its default Java Platform (JDK 1.6.0_20) for parsing the source files in this project, which leads to many errors (for example because I have implementations of java.sql.Connection there and this interface has more methods in Java 6 than it had in Java 5). Did I hit a bug in the Maven support of NetBeans 6.9? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|