1、在maven的conf目录下的settings.xml配置文件中添加登录私服第三方登录信息<server><id>thirdparty</id><username>admin</username><password>admin123</password></server>
2、打开cmd,进入jar包所在目录
3、运行命令:mvn deploy:deploy-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dpa艘早祓胂ckaging=jar -Dfile=fastjson-1.1.37.jar -Durl=http://localhost:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty