Where is the maven home directory when you install Netbeans with Glassfish? I have searched for 'mvn' in the Program Files directory and my user directory in Windows 7 but it turns up nothing.
In the Maven settings in Netbeans for 'Maven Home' it says 'Bundled' which isn't much use to me, I need the actual path to maven.
Maven is bundled with the IDE and installed when you install the IDE. Open the Options window in the IDE (Tools > Options; NetBeans > Preferences on Mac). Select the Java category in the Options window and click the Maven tab.
You do not need to download Maven because it is bundled with the IDE. Optionally, use your own download of Maven, in which case use the Options window to configure your Maven settings.
From the Tools menu, select Plugins. In the Plugins dialog, click the Available Plugins tab, then type Maven in the Search field. Select the checkbox for the Maven plugin, then click the Install button. Follow the instructions in the NetBeans IDE Installer wizard.
First install maven separately (and verify it by running mvn command line) and then open netbeans and navigate to Tools -> Options -> Java -> Maven (I guess you already know that but just in case) and change the 'Maven Home' path to the directory where maven is installed.
The Bundled maven could generally be found at NetBeans_install_directory/java/maven.
Example For Mac: /Applications/NetBeans 8.2.app/Contents/Resources/NetBeans/java/maven/ Example For Windows: C:/Program Files/Netbeans 8.2/java/maven/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With