标签:用户名 私服 mil img images releases repos str deploy
1、认证,在M2_HOME/conf/settings.xml配置用户名密码
2、在将要上传项目的pom.xml中配置jar包上传路径url
<distributionManagement> <repository> <id>releases</id> <url>http://127.0.0.1:8081/repository/maven-releases/</url> </repository> <snapshotRepository> <id>releases</id> <url>http://127.0.0.1:8081/repository/maven-snapshots/</url> </snapshotRepository> </distributionManagement>
3、执行命令发布项目到私服(上传jar包到私服上)
mvn deploy
标签:用户名 私服 mil img images releases repos str deploy
原文地址:http://www.cnblogs.com/boazy/p/6920691.html