Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the Maven installation directory in Eclipse 3.4

I have installed m2eclipse plugin from http://m2eclipse.codehaus.org/. Now I want to use that as a standalone build tool but I am unable to find the installation directory. Can anyone help me in this?

like image 432
Tushu Avatar asked Nov 14 '08 11:11

Tushu


People also ask

Where is Maven install directory?

Hope this helps. Show activity on this post. Option 2: Select/Configure your Embedded "Maven Runtime" Right-click on your project -> "Run As..." -> under "Maven Build", Tab "Main" -> take the "External" Maven in the Drop-Down Box. Then run it.

Where is Maven located in Eclipse?

Import a maven project in Eclipse Open Eclipse. Select File > Import > option. Select Maven Projects Option. Click on Next Button.

How do I know if Maven is installed in Eclipse?

To check maven is configured properly:Open Eclipse and click on Windows -> Preferences. Choose Maven from left panel, and select installations.


2 Answers

Execute the following command:

mvn --version

Example Result:

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19  14:51:28+0100)
Maven home: `D:\apache-maven-3.0.5\bin`\..
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_25\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

The Maven Home will show you where maven is installed.

like image 61
Deepak Kumar Verma Avatar answered Sep 22 '22 08:09

Deepak Kumar Verma


I have both the plugin (with its embedded maven instance) and a full maven download. Both should end up using the same repository in something like C:\Documents and Settings\user\.m2.

There are a few cases where you need a full maven download anyways. For example, trying to build a groovy maven plugin crashes with the embedded maven, but works fine for the full download.

You can also specify from the preference pane in Eclipse, to use a differen maven installation than the embedded one.

Hope this helps.

like image 37
toolkit Avatar answered Sep 26 '22 08:09

toolkit