n3dr icon indicating copy to clipboard operation
n3dr copied to clipboard

upload working but not upload all maven artifacts

Open LeBakii opened this issue 3 years ago • 4 comments

What happened: When I upload to repository its not upload all artifacts in the download file.

n3dr upload -n http://*** --https=false -u *** -r releases --directory-prefix /home/ubuntu/nexus-repo

I also tried repositoriesV2 --upload and its not upload all artifact as well

LeBakii avatar Aug 11 '22 08:08 LeBakii

Could you run the command with the debug option and check whether there are some errors?

030 avatar Aug 11 '22 08:08 030

I checked it so many times but there is no error.

this is the one of unuploaded file tree.

gojo └── otmm └── hybris ├── HybrisPCMIntegration │ └── maven-metadata.xml ├── PIMNotificationEventsListener-ear │ └── 1.0.0 │ └── PIMNotificationEventsListener-ear-1.0.0.ear └── PIMNotificationEventsListener-ejb └── 1.0.0 └── PIMNotificationEventsListener-ejb-1.0.0-sources.jar

7 directories, 3 files

LeBakii avatar Aug 11 '22 08:08 LeBakii

Hi

I'm experiencing similar issues of missing artifacts after an upload. What I did:

  1. Use the repositoriesV2 --backup command to download a 1.7G large Maven repository (BACKUP1)
  2. Use the upload command to transfer BACKUP1 into a new, empty repository --> new blob is also 1.7G
  3. Use the repositories --upload on BACKUP1 to populate another empty repository --> new blob is only 1.4G

After that, I created another repositoriesV2 --backup (BACKUP2) of the second upload that is only 1.4G and compared the list of files. What I observed is:

  • all files of type -sources.jar, .tar.gzand.rpm` went missing
  • a few other arbitrary .jar files went missing (I can't spot anything suspicious about them)

My impression is that the deprecated upload command is more reliable than the repositories --upload command.

Regards Dominik

dokaspar avatar Nov 17 '22 16:11 dokaspar

It seems that any artifacts (e.g. jar files) are ignored in the upload if a corresponding pom.xml file is missing.

dokaspar avatar Nov 21 '22 08:11 dokaspar