Reputation: 3389
I have imported multiple projects in eclipse through maven. After importing the projects in eclipse I saw that there are some error on the project folder in project explorer. All that errors are on pom.xml.
When I opened pom.xml the error is like this:
Project build error: Non-resolvable parent POM: Failure to find org.openhie.openempi:openempi:pom:2.2.5 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM
How to resolve this errors in eclipse? I tried a lot by adding the missing JAR's as specified in error message sometime, but still the errors are highlighting on pom.xml.
Please advice me for this.
Thanks
Upvotes: 3
Views: 6202
Reputation: 19848
You have a maven plugin that does that. You have to go with the command line at the root of your maven project and type
mvn eclipse:eclipse
It will create (or update) an eclipse project with dependencies to the jar
located in your local maven repository, and the eclipse project artifacts (.project, .classpath and other stuff) in the same repository.
Then import your project in eclipse using "Import existing project" wizard.
http://maven.apache.org/guides/mini/guide-ide-eclipse.html for more information
Upvotes: 2
Reputation: 1849
Install http://www.eclipse.org/m2e/ via the eclipse marketplace. The plugin adds a
classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
entry in the .classpath file for eclipse and every jar from the maven dependencies will be in your classpath.
Upvotes: 6