1 命令参数,里面的参数改成自己的坐标配置,以及本地第三方jar的本地路径
mvn deploy:deploy-file -DgroupId=taglibs -DartifactId=taglibs-unstandard -Dversion=20060829 -Dpackaging=jar -Dfile=/Users/zhangjin/developSoftware/mavenRepository/taglibs/taglibs-unstandard/20060829/taglibs-unstandard-20060829.jar -Durl=http://new.nexus.XXXXX.cn/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty
2 Maven需要配置对应的有权限的 repositoryId 对应上传jar包的用户名和密码(.setting文件配置)
<server> <id>thirdparty</id> <username>deploy</username> <password>deploy</password> </server>