Sunday, October 6, 2013

08 - Eclipse Plugin for Maven and Maven Plugin for Eclipse



More plugins! We'll use the Maven's Eclipse plugin to get our Maven project into the Eclipse IDE. We'll also download and install the m2eclipse plugin of Eclipse to bring Maven functionality into the Eclipse GUI.
mvn eclipse:eclipse now we can see .settings and .project files
Open you eclipse import->Existing project->Browser the root directory->finish
In some cases you might an exclamatory (!) mark, it is due to unbound classpath variable (missing of jar path).  Here we just right click -> properties -> java build path -> Libraries ->configure M2_Repo
Add variable->configure variable->new->M2_REPO= provide repository path (c:/user/yash/.m2/repository)->ok

Install maven plugin in eclipse
Help-> install new software -> work with(All available sites)-> search for maven->click Maven integration for eclipse->next->next->finish(restart eclipse)

No comments:

Post a Comment