有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Maven站点迁移如何处理?

Maven站点可以使用各自pom中的<url>从依赖项中发现Maven站点。这些URL通常在pom或其父pom之一中硬编码

目前,我们使用Nexus 2.14站点URL,其路径如下

http://somerepo:8081/nexus/...

当我们迁移到Nexus 3或Artifactory时,这些URL将发生变化,这意味着我们的工件站点之间的所有链接都将中断

我们如何避免这种情况


共 (1) 个答案

  1. # 1 楼答案

    sonatype help

    1. Finalize migration in Nexus Repository Manager 3

    2. Shutdown Nexus Repository Manager 2

    3. Shutdown Nexus Repository Manager 3

    Reconfigure it to run on the original port and context of Nexus Repository Manager 2, for example port 8081 and /nexus context.

    Start Nexus Repository Manager 3

    Congratulations – you are done. Depending on your specific setup e.g. usage of an external reverse proxy server around the repository manager the detailed config steps will vary a little bit, but the general approach is the same.

    All external settings.xml, .npmrc and similar config files using repository URLs will continue to work in Nexus Repository 3, so you wont have to reconfigure any client tools.

    这意味着,如果您正确配置Nexus 3,您的URL将是相同的,您不需要更改POM