Eclipse - Convert to Maven project - eclipse

I'm using Eclipse Indigo, and I installed m2eclipse plugin. However, I can't see in Configure a Convert to Maven Project option.
I think I've installed the m2e for a newer eclipse version..Is there a way to install m2e for Eclipse Indigo? (can't find it in the market)
SOLVED: Finally I uninstalled and installed again m2e and now it works..i guess i did something wrong while installing it the first time.

Run "mvn eclipse:eclipse" command in your project directory for convert project to maven project:
mvn eclipse:eclipse
OR (for web project)
mvn eclipse:eclipse -Dwtpversion=2.0

If you installed it through the Marketplace, try uninstalling it, and then reinstall it through "Install New Software" under Help. Enter this URL to get it from: http://download.eclipse.org/technology/m2e/releases
That worked for me. If that URL doesn't work (or if you want an older version), check this page.

Related

Is maven required to install explicitly if already installed Eclipse Kepler?

I have already installed Kepler in which maven comes inbuilt.
After that am I required to download Maven explicitly and set environment variable? or just downloading eclipse kepler version is fine?
The plugin in Eclipse is a different thing from Maven using on command line. So you have to download Maven and install it locally which has nothing to do with Eclipse.

Running the ZK essentials maven project from eclipse

I usually can run zk apps on the server but the essentials app is a maven project and I cant see that option in zk studio (in eclipse).
How do I run it in eclipse?
Install the m2e plugin from the marketplace. It will give you additional options in the Run menu like "Maven install".
Note that Maven is a build tool, not a run tool. Maven only manages the classpath for you. You can then use the normal "Run as ..." of Eclipse to start it.
EDIT When you have m2e, make sure you import the project using "Import Maven project". M2e will then configure all the aspects, facets and natures.
If you already have the project imported, try "Update Project..."
If that doesn't work, try to enable the "Web Project Facet". See this blog post for details: http://www.mkyong.com/java/how-to-convert-java-project-to-web-project-in-eclipse/
I have installed m2e plugin on Eclipse Juno without any problem.
Have you tried install m2e plugin before install other plugins? it
will give you maven install option .
first of all, goto help menu then eclipse marketplace search
m2e plugin in eclipse juno/ kepler version and install the m2e plugin

Cannot upgrade/un-install m2eclipse plugin in Eclipse

I have Eclipse 3.6 with m2eclipse (Maven's plugin for Eclipse) 1.1, it works.
And now I want to try m2eclipse version 1.4, I upgrade it directly and find I cannot see Maven in any menu. Then I try to uninstall and re-install it but I always get this message and Eclipse doesn't install anything.
Your original request has been modified.
"m2e - Maven Integration for Eclipse" is already present because other installed
software requires it. It will be added to the installed software list.
Finally, I try to search all files contain "m2e" and delete them from Eclipse's directory, but still get the same message, any suggestion to un-install m2eclipse?
ps: I use Eclipse Help > About eclipse > Installation details to un-install and restart to make sure m2e is not in Eclipse before re-install. I also use -clean parameter but still the same.
You can remove the m2e plugin in Eclipse Help > About eclipse > Installation details. You should find all the m2e to uninstall.
Edit :
You could also reload eclipse with the -clean option so any cached data used by the OSGi framework and eclipse runtime will be wiped clean

Import Existing Maven in Eclipse as WTP

I had to reinstall my Eclipse and now i have to import all the existing projects into the new workspace. The previous version of Eclipse was Galileo, this version is Indigo. The plugins are installed, but after the "Import Existing Maven Project" the projects are not showing as WTP (WebApp Project)...
Do i need something else to setup or config?
Thanks a lot!
Yes, you need to install additional software. The "Maven Integration for Eclipse WTP"
See here: http://marketplace.eclipse.org/node/96737
Update Site: http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/
You can convert a maven project to a Eclipse WTP project.
After that you only need to import the project as any other project.
The command to convert is:
mvn eclipse:eclipse -Dwtpversion=2.0

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 sites 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:
Install eclipse with m2e
Install separately a current maven version (depending on what you need, Maven 2.2.x or Maven 3.0.x)
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]