java - 如何找到 org.eclipse.persistence maven 依赖项?

标签 java eclipse maven

如何找到 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

关于java - 如何找到 org.eclipse.persistence maven 依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6089321/

相关文章:

安卓NDK调试: armeabi-v7a not working

java - 如何为嵌入在 java 程序中的数据库打开 hsql gui?

java - 无法在 Mac 上加载 jar-with-dependencies

git - 使用 git 存储库和 jenkins 执行子项目的 Maven 发布

java - Intellij IDEA Maven : can't resolve symbol "backtype"

Java8 - 文本不显示在 TextArea 中

java - 为什么我的列表需要 session 中的空列表才能显示添加到该列表的所有项目?

java - 对话框内的 Viewpager 不起作用

通过 MakeSignature.signDeferred 进行外部签名时,Java iText 5 签名无效

java - java Nashorn 中的默认方法是在实际方法不存在时调用的吗?