通过 UI 将工件上传到 Nexus

Upload artifacts to Nexus through UI

我正在尝试在 Nexus3 中创建一个 pom 包,但我收到一个错误,指出资产相互重复:

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

上传页面截图如下:

所以在这种情况下,您要为 5 个不同的 jar 文件生成一个 pom。在内部 nxrm 3 将重写这些 jar 文件的名称,以匹配 maven 在给定您提供的 pom 设置的情况下所期望的。在这种情况下,所有这些 jar 文件都将命名为 libreoffice-uno-4.0.3.3.jar。你有两个选择。您可以使用单独的 pom 文件上传这些 jar 文件中的每一个,其中工件名称与 jar 文件的名称相匹配。或者你可以给每个 jar 文件一个分类器。这将导致文件被命名为 libreoffice-uno-4.0.3.3-<classifier>.jar.