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?
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.
Import a maven project in Eclipse Open Eclipse. Select File > Import > option. Select Maven Projects Option. Click on Next Button.
To check maven is configured properly:Open Eclipse and click on Windows -> Preferences. Choose Maven from left panel, and select installations.
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.
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.
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