I am doing a Maven build in Eclipse where my project requires Maven 2. My Maven runtime is set to embedded (3.2.1/1.5.1.20150109-1819). How do I set the runtime to use Maven 2?
I tried setting a runtime installation by pointing to my Maven 2 installation, but that did not work.
#1) From the top menu of Eclipse select Help -> Install new Software, and the following window will open. #2) Click on the Add button highlighted in the above image. An add repository dialogue box will open, enter the following in the two text fields of this box. Click on the Add button.
2.1.Most Eclipse IDE downloads already include support for the Maven build system. To check, use Help About and check if you can see the Maven logo (with the M2E ) sign. If Maven support is not yet installed, the following description can be used to install it.
Eclipse IDE, menu bar. Select Window > Preferences. Select Java > Build Path > Classpath Variables. Click on the new button > defined a new M2_REPO variable and point it to your local Maven repository.
I pointed to libexec folder lying along bin, and it worked.
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