方式一:
maven的Setting.xml
<servers>
<server>
<id>gassSnapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
执行命令
mvn deploy:deploy-file -DgroupId=com.hikvision -DartifactId=artemis-http-client -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=artemis-http-client-1.0-SNAPSHOT.jar -Durl=http://192.168.0.51:9891/nexus/content/repositories/gassSnapshots -DrepositoryId=gassSnapshots
方式二:
Nexus 后台管理直接导入