Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven location (when installed indirectly with Netbeans/Glassfish)?

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.

like image 747
csss Avatar asked Dec 24 '12 22:12

csss


People also ask

Where is Maven installed in NetBeans?

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.

Do we need to install Maven separately for NetBeans?

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.

Does NetBeans install Maven?

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.


1 Answers

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.

enter image description here

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/

like image 105
PCM Avatar answered Jan 01 '23 06:01

PCM