Where did the EclipseLink/Maven repository go to? (again)

喜你入骨 提交于 2019-12-01 14:30:43

问题


Yes, I know, the subject was asked before, but the repository moved again. Has anybody seen it? I would be much obliged.


回答1:


A quick search reveals a long list of mirrors, most of them returning 404s but their cache entry is still viewable (for now). So it does seem like the files have been removed at the source, and rather recently too.

Here are a few mirrors that still have the files (for now):

  • http://linorg.usp.br/eclipse/rt/eclipselink/maven.repo/
  • http://mirror.neu.edu.cn/eclipse/rt/eclipselink/maven.repo/

Update:

This thread on the eclipselink mailing list reveals something rather bizzare -- while the maven.repo directory is not accessible (404), subpaths that resolves to .jar or .pom files will still work!

  • This currently fails: http://download.eclipse.org/rt/eclipselink/manen.repo
  • But this works: http://download.eclipse.org/rt/eclipselink/maven.repo/org/eclipse/persistence/org.eclipse.persistence.core/2.3.1/org.eclipse.persistence.core-2.3.1.jar

While the relevant files are still accessible, this messes up the mirroring process as well as any workflow that first checks if the repo exists. From the linked thread:

"This of course wreaks havoc on any Nexus or Artifactory repository you may have that proxies the EclipseLink repository, as it will conclude that EclipseLink's repo is out of service even though strictly speaking it is not. The solution is to turn off any automatic checking of the repository and/or automated blocking of it."




回答2:


Finally there's at least a reasonable explanation on Eclipse wiki pages for why it doesn't work, see http://wiki.eclipse.org/EclipseLink/Maven. The libraries are currently only hosted in a P2 repo which plain Maven doesn't understand. Basically, you have to proxy them through via Nexus or another repo manager. The page I linked to has instructions for configuring (open source) Nexus, the premium version can read P2 repos natively.




回答3:


This worked for me

<repository>
    <id>eclipse</id>
    <url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
</repository>

<dependency>
    <groupId>org.eclipse.persistence</groupId>
    <artifactId>org.eclipse.persistence.core</artifactId>
    <version>2.3.1</version>
</dependency>



回答4:


You are right, none of the Eclipse Maven repositories seem to work.

The repository at java.net does, however provide a JPA implementation: http://download.java.net/maven/2/org/eclipse/persistence/javax.persistence/2.0.0/

I don't know if it's any good.

Still, the Eclipse Maven repos need to be fixed.




回答5:


As of EclipseLink 2.5.0 the EclipseLink respository is on Maven Central.

  • http://search.maven.org/#search|ga|1|g%3A%22org.eclipse.persistence%22

The EclipseLink 2.4.2 release and the current development builds are on http://oss.sonatype.org:

<repository>
    <id>oss.sonatype.org</id>
    <name>OSS Sonatype Staging</name>
    <url>https://oss.sonatype.org/content/groups/staging</url>
</repository>

Older releases can be found at the following repository:

<repository>
   <id>EclipseLink</id>
   <url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
</repository>

For More Information

  • http://wiki.eclipse.org/EclipseLink/Maven


来源:https://stackoverflow.com/questions/8254417/where-did-the-eclipselink-maven-repository-go-to-again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!