maven发布到nexus

2018-04-20  本文已影响0人  tommyhxh

配置setting.xml

<server>
    <id>需要发布到仓库的ID</id>
    <username>admin</username>
    <password>admin123</password>
</server>

配置项目POM的发布管理

<distributionManagement>
    <repository>
        <id>需要发布到仓库的ID</id>
        <name>Nexus Release Repository</name>
        <url>nexus中对应的Repository path</url>
    </repository>
</distributionManagement>

使用mvn deploy命令进行发布上传

nexus使用

内网地址 http://10.16.8.29:8081


image.png

使用upload上传

也可以使用nexus自带的工具上传

image.png
上一篇下一篇

猜你喜欢

热点阅读