By bercolax
via theasolutions.com
Submitted: Jul 06 2008 / 06:42
This link shows how to make NetBeans 6.1 aware of the Maven bat file location. NetBeans uses ANT's exec task to invoke Maven. Hence we should pass mvn.bat location as an input to exec task.
Comments
mkleint replied ago:
not sure what the user is doing with maven projects there, but in general one should install maven support from update center and load the project as maven project, no ant setting then necessary.
bercolax replied ago:
Hi Milos, The above scenario is considering we do not install Maven plugin and use the command "mvn netbeans-freeform:generate-netbeans-project" to export the Maven project in a format Netbeans understand. [that is creating nbproject folders etc].
I see this as an issue in the freeform plugin rather than NetBeans as the free form plugin ought to export the Maven Home also to be executed in the ANT exec task.
If you install Maven plugin in NetBeans we do not need to execute the above command.
Voters For This Link (1)
Voters Against This Link (1)