Netbeans 6 has great Maven 2 support. Unfortunately, my company is still using Maven 1, and there's no change in sight. There are mevenide builds for Netbeans 6 available, but the plugin has trouble finding MAVEN_HOME, at least on Windows.
I scoured Jira, and found a fix.
Assuming that you have already downloaded and installed the correct version of mevenide, add the following entry to the netbeans_default_options variable in netbeans.conf: -J-DEnv-MAVEN_HOME=\"
YourPathToMavenHome\". That's it!
Well, not quite. Adding this line fixes some of the problems, but the plugin itself it still very flawed on NB6.*, so much so that I am back to using NetBeans 5.5 for all of my development work. I can get the project to build, but that is about it. Here's a list of things I haven't figured out how to fix yet...
- NetBeans uses the JDK it is running on for code completion and error checking. So, if your project uses JDK 1.5, but your IDE is running on JDK 1.6, expect 1.6 level code completion and error checking.
- NetBeans is unable to resolve dependencies upon other maven projects. So, if project A depends upon project B, and both of them are in my workspace, NetBeans will draw red lines all over your code.
This is a real bummer because NetBeans 6 is a great IDE, and I'd love to use it as my every day IDE. Without Maven 1 support, it's a non starter.