新建thirdparty respository
配置settings.xml
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server>
执行上传
mvn deploy:deploy-file -DgroupId=com.kq -DartifactId=util -Dversion=4.2 -Dpackaging=jar -Dfile=D:/ui/util-4.2.jar -Durl=http://192.168.6.223/repository/thirdparty/ -DrepositoryId=thirdparty