如何找到一个 maven 依赖项? 例如,
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.0.0</version>
</dependency>
错误是
[WARNING] The POM for org.eclipse.persistence:javax.persistence:jar:2.0.0 is missing, no dependency information available
[WARNING] The POM for org.eclipse.persistence:eclipselink:jar:2.0.0 is missing, no dependency information available
[ERROR] Failed to execute goal on project javaee: Could not resolve dependencies for project com:javaee:jar:2.0: The following artifacts could not be resolved: org.ecli
pse.persistence:javax.persistence:jar:2.0.0, org.eclipse.persistence:eclipselink:jar:2.0.0: Failure to find org.eclipse.persistence:javax.persistence:jar:2.0.0 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 -
> [Help 1]
谢谢。
您必须将
EclipseLink Maven 存储库添加到您的设置中: http://wiki.eclipse.org/EclipseLink/Maven