Search code examples
maven-2nexusnexus3

Upload artifacts to Nexus through UI


I'm trying to create a pom bundle in Nexus3, but I get an error that the assets duplicate each other:

WARNING

The assets 1 and 2 have identical coordinates, The assets 2 and 3 have identical coordinates, The assets 3 and 4 have identical coordinates, The assets 4 and 5 have identical coordinates

Here is a screenshot of the upload page: enter image description here


Solution

  • So in this case, you are generating a pom for 5 different jar files. Internally nxrm 3 will rewrite the name of these jar files to match what maven expects given the pom settings you have provided. In this case, all of these jar files will be named libreoffice-uno-4.0.3.3.jar. You have two options. You can upload each of these jar files with a separate pom file where the artifact name matches the name of the jar file. Alternatively you can give each jar file a classifier. That would cause the files to be named libreoffice-uno-4.0.3.3-<classifier>.jar.