1.上传到本地库
mvn install:install-file -Dfile=D:\sap2fbopclient.jar -DgroupId=com.yd.fbop.ws.sap2fbop -DartifactId=sap2fbopclient -Dversion=1.0.0 -Dpackaging=jar
2.上传到私服,需要配置一下setting文件和pom文件
setting文件:
- <servers>
- <server>
- <id>nexus</id>
- <username>admin</username>
- <password>admin123</password>
- </server>
- </servers>
- <distributionManagement>
- <repository>
- <id>nexus</id>
- <name>local private nexus</name>
- <url>http://192.168.xx.xx:8081/nexus/content/groups/public</url>
- </repository>