NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to configure which Java platform is used for Maven projects

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Leos.Bitto



Joined: 21 Jun 2010
Posts: 1

PostPosted: Mon Jun 21, 2010 8:48 am    Post subject: How to configure which Java platform is used for Maven projects Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo