1、如何上传包至私服?**
- 找maven私服管理员申请上传私服权限
- 更改本地maven私服配置文件,详见链接
更改本地maven私服配置文件中的 <servers></**servers>**节点
<servers><server><id>highzap-public</id><username>xxxx</username><password>xxxx</password></server><server><id>highzap-private-Release</id><username>xxxx</username><password>xxxx</password></server><server><id>highzap-private-Snapshot</id><username>xxxx</username><password>xxxx</password></server><server><id>highzap-profile</id><username>xxxx</username><password>xxxx</password></server></servers>
pom文件中新增以下节点(如果不在公司,请将注释的外网地址打开即可)
<distributionManagement><!-- 部署至maven私服 --><repository><id>highzap-private-Release</id><name>highzap-private-Release</name><url>http://demo.highzap.com:8081/repository/highzap-private-Release/</url></repository><snapshotRepository><id>highzap-private-Snapshot</id><name>highzap-private-Snapshot</name><url>http://demo.highzap.com:8081/repository/highzap-private-Snapshot/</url></snapshotRepository></distributionManagement>
执行部署
部署方式一(命令行):
mvn deploy
部署方式二(idea操作):
