mvn deploy:deploy-file -Durl=http://192.168.0.4:8081/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty -Dfile=jmxspi.jar -DgroupId=oracle.as -DartifactId=jmxspi -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true
一定要在settting.xml配置认证。
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server>
转载于:https://www.cnblogs.com/kms1989/p/6268677.html