如何通过idea将jar发布到maven私服nexus
配置maven setting.xml文件
<servers>
<!-- server
| Specifies the authentication information to use when connecting to a particular server, identified by
| a unique name within the system (referred to by the 'id' attribute below).
|
| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
| used together.
|
-->
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
<privateKey>/path/to/private/key</privateKey>
<passphrase>optional; leave empty if not used.</passphrase>
</server>
-->
<!--配置私服账号密码-->
<server>
<id>releases</id>
<username>xx</username>
<password>xxx</password>
</server>
<server>
<id>snapshots</id>
<username>xx</username>
<password>xx</password>
</server>
</servers>
输入私服的用户名和密码
2、配置pom文件 写入地址
pom.xml文件配置url 和id如下图
点击clean
点击intsall
点击deploy