From: Michael B. <mic...@gm...> - 2008-09-05 04:38:35
|
PPS. If a pom already contains this... <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> then Netbeans will honour it 2008/9/5 Michael Bedward <mic...@gm...>: > I think the problem is that Netbeans 6.1 sets Java 1.4 as the default > when creating / opening a maven project. > > In Project window, right click on the project element, then select > Sources in the list on the RHS of the dialog, then at bottom left of > dialog there should be a pull-down list called 'Source / Binary > Format' where you can change the version. > > I forget this every time until I do the first build :) > > Michael > > ps. I'll check to see if I put anything about that on the netbeans wiki page |