如何解决在eclipse中通过maven导入的java项目中的依赖项?

Bha*_*hah 3 java eclipse pom.xml maven

我通过maven在eclipse中导入了多个项目.在eclipse中导入项目后,我发现项目浏览器中的项目文件夹有一些错误.所有错误都在pom.xml上.

当我打开pom.xml时,错误是这样的:

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
Run Code Online (Sandbox Code Playgroud)

如何在eclipse中解决这个错误?我尝试了很多时候添加错误消息中指定的缺少的JAR,但仍然在pom.xml上突出显示错误.

请告诉我这个.

谢谢

oll*_*ins 6

通过eclipse市场安装http://www.eclipse.org/m2e/.该插件添加了一个

classpathentry kind ="con"path ="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"

eclipse的.classpath文件中的条目以及maven依赖项中的每个jar都将在您的类路径中.