simpligility / maven-repository-tools

Tools for interacting with Maven repositories
Eclipse Public License 1.0
137 stars 66 forks source link

Don't include md5 or sha1 when migrating from FS #35

Closed seboudry closed 6 years ago

seboudry commented 6 years ago

Hi, When migrating a Nexus2 repository (from sonatype-work/storage/my-repo directory) to a new Nexus3, the script complains about checksum files

WARN  o.e.a.c.b.BasicRepositoryConnector - Failed to upload checksum groupId/artifactId/1.0.0/artifactId-1.0.0-classifier.ext.md5.sha1: Server Error (500)
WARN  o.e.a.c.b.BasicRepositoryConnector - Failed to upload checksum groupId/artifactId/1.0.0/artifactId-1.0.0-classifier.ext.md5.md5: Server Error (500)

BTW, thx a lot for this such convenient tool !

mosabua commented 6 years ago

Why is that invalid? Seems more like a Nexus3 bug to be honest.

seboudry commented 6 years ago

I suspect the tool to upload checksums of checksum file ;-)

Failed to upload checksum <path>/<file>.md5.sha1
Failed to upload checksum <path>/<file>.md5.md5
mosabua commented 6 years ago

Oh... hm. How did those files even get into the repo? Those are invalid content ..

seboudry commented 6 years ago

Mmmh right... I've deleted the old repo so I can't check if hash-hash files comes from there. Maybe Nexus 2 don't complains about receiving those kind of files, and Nexus 3 don't want them.

Let's close this issue and reopen if this happens again.