maven nexus3.13 安装 ---Windows服务器安装过程和基本使用

详情参考网址:
https://blog.csdn.net/a184477587/article/details/81905321#commentBox


注意点:

1.如果仅仅上传jar包,步骤

步骤一:在setting.xml中配置
<servers>
<server>
        <id>releases</id>
        <username>admin</username>
        <password>admin123</password>
    </server>
    <server>
        <id>snapshots</id>
        <username>admin</username>
        <password>admin123</password>
    </server>
</servers> 
步骤二:工程pom.xml中添加如下
  <distributionManagement>
        <repository>
            <id>releases</id>
            <name>Releases</name>
            <url>http://192.168.90.51:8081/repository/maven-releases/</url>
        </repository>
        <snapshotRepository>
            <id>snapshots</id>
            <name>Snapshot</name>
            <url>http://192.168.90.51:8081/repository/maven-snapshots/</url>
        </snapshotRepository>
    </distributionManagement>
步骤三:需要在当前工程目录下执行mvn clean deploy发布上去

2.如果从私服上拉取jar包

步骤只需要 配置setting.xml中的mirror标签,通过镜像拉取

3. profile这里配置的只是deploy上去的代码生效的是哪个环境?这里的环境设置的是dev。

猜你喜欢

转载自blog.csdn.net/weixin_40792878/article/details/85019517
今日推荐