开发者

Maven plugin install with Eclipse

I am new to Maven, I have to install maven plugin in eclipse. I am facing some issues in the same, as the inputs I am getting different site开发者_开发问答s are not working. I have also gone through existing posts like this, which talks about running the command like :

mvn install:install-file -Dfile=c:\kaptcha-2.3.jar -DgroupId=com.google.code 
-DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar

but where do I run this command ??

This site talks about adding as parameter maven.repo.remote like :

maven -DartifactId=maven-eclipse-plugin-plugin -DgroupId=mevenide -Dversion=0.3.1 plugin:download

BUt where are these parameter set ??

Please can someone help me with pointing some good resource, which gives easy steps to install maven plugin in eclipse?

My eclipse version: indigo release, Java EE IDE.


If you are running eclipse Indigo for Java EE you can install the missing m2e plugin this way:

Help-> Install new software -> Work with: Indigo -> General Purpose Tools -> m2e

See also: Where is m2eclipse?


  • Start with Eclipse Indigo Java EE edition
  • m2e is the maven integration for Eclipse. Install this plugin in the IDE.
  • Import maven project if you have any or create a new one

mvn install:install-file is used to install maven artifacts in local repository, if it cannot be automatically downloaded and installed by maven. This is not normally required, but if you have to do this, you can go to Run as -> Run Configurations... and create an appropriate Maven Build configuration.

maveide is not maintained and not to be referred.


In the Indigo release, Maven is already included by the eclipse plugin m2e. At the plugins website, you will find plenty of material. The steps are normally:

  1. Install eclipse with m2e
  2. Install separately a current maven version (depending on what you need, Maven 2.2.x or Maven 3.0.x)
  3. Configure your installed Maven inside Eclipse due to the documentation. Do that in the section Window > Preferences > Maven > Installations. If that is not visible in Eclipse, you first have to install m2e with the normal installation procedure: Help > Install New Software > Work with: Indigo > Filter text: m2e > Collaboration > m2e. Then next, next, next ...

Hope that helps.


Eclipse > Help > Eclipse Marketplace...

Search for m2e

Install Maven Integration for Eclipse (Juno and newer). [It works for Indigo also]

Maven plugin install with Eclipse

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜