1st
NOV

Serious problem in Netbeans & Maven

Posted by Keith under Java

After struggling for hours to make Netbeans work with Maven/Struts, I found this:

http://java.sun.com/developer/community/askxprt/2007/jl1022.html

question Kris Bravo: I recently tried to use the portal support in combination with a Maven 2 project. Since the new release changed to a model of adding a portal to an existing web application project, I was hopeful that this could be done in my existing Maven project. After giving it some effort I was unable to make this work.

Is it possible, and if not, will it be in the future?

answerBrian Leonard: I asked Milos Kleint, author of the Maven plugin, here was his response:

Well, the web side of maven support is not really supported on the full scale comparable to ant based projects. What works is deployment and some other basic stuff. I’m not sure about how portal support is implemented. I suppose it’s just another webframework on top of web projects. I have done some experimental work on webframeworks support for maven projects (alpha-beta quality). Currently works with struts, but not with visual web for example. Probably a matter of planning and priorities for post 6.0. This kind of integration work needs to be done across teams.

Your best avenue for carrying this topic further is probably the mevenide mailing list. There you’ll find plenty of others in the Maven community (including Milos), who can more directly help you with this issue.

So, current Maven plugin for Netbeans doesn’t support Web application. Using Maven’s goals work fine, but it won’t support Visual web tool and running web app. After SVN check out a Maven project, the IDE recognized it as a Maven project automatically (of course, after installing Maven plugin). It is a Struts project, so I brought up the Properties, but there is no “framework” node. Struts framework can’t be added. Bummer.