Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326463

Summary: Maven fails to download javax.persistence 2.0.2
Product: z_Archived Reporter: R. Bemrose <bemroser>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: maven

Description R. Bemrose CLA 2010-09-28 16:46:28 EDT
Build Identifier: 20100917-0705

Using Maven 2.0.11 on Windows XP, Maven fails to download certain EclipseLink packages from the EclipseLink Repo:
GroupID: org.eclipse.persistence
ArtifactID: javax.persistence
Version: 2.0.2
Failure reason: Invalid checksum

Log:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dao
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Projects\java\svn\dominion\dao\src
\main\resources
Downloading: http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/ecl
ipselink/maven.repo/org/eclipse/persistence/javax.persistence/2.0.2/javax.persis
tence-2.0.2.pom
20b downloaded
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
Downloading: http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/ecl
ipselink/maven.repo/org/eclipse/persistence/javax.persistence/2.0.2/javax.persis
tence-2.0.2.pom
20b downloaded
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
[INFO] Unable to find resource 'org.eclipse.persistence:javax.persistence:pom:2.
0.2' in repository EclipseLink Repo (http://www.eclipse.org/downloads/download.p
hp?r=1&nf=1&file=/rt/eclipselink/maven.repo)
Downloading: http://repo1.maven.org/maven2/org/eclipse/persistence/javax.persist
ence/2.0.2/javax.persistence-2.0.2.pom
[INFO] Unable to find resource 'org.eclipse.persistence:javax.persistence:pom:2.
0.2' in repository central (http://repo1.maven.org/maven2)
Downloading: http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/ecl
ipselink/maven.repo/org/eclipse/persistence/javax.persistence/2.0.2/javax.persis
tence-2.0.2.jar
20b downloaded
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
Downloading: http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/ecl
ipselink/maven.repo/org/eclipse/persistence/javax.persistence/2.0.2/javax.persis
tence-2.0.2.jar
122K downloaded
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Sep 28 16:36:41 EDT 2010
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------

2.0.1 works as expected.

As a side note, some Maven mirrors may have buggy versions of org.eclipse.persistence.core 2.1.1... m2eclipse refused to download it at all, but mvn compile from the command line worked fine.  I can only assume m2eclipse is caching the redirect, as it failed every time I tried it.

Reproducible: Always

Steps to Reproduce:
1. Add the repository and javax.persistence dependency to the project's POM file, as documented on the EclipseLink Maven wiki page
2. Run mvn compile
Comment 1 Eric Gwin CLA 2013-04-11 14:23:54 EDT
Should have been fixed. Looks like I never updated the bug. Sorry.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:14:35 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:24:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink