Maven指令上传jar包到仓库

mvn指令

mvn deploy:deploy-file -DgroupId=xxx.xxx -DartifactId=xxx -Dversion=0.0.2 -Dpackaging=jar -Dfile=D:\xxx.jar -Durl=http://xxx.xxx.xxx.xxx:8081/repository/3rdParty/ -DrepositoryId=3rdParty
  • -DgroupId groupId
  • -DartifactId artifactId
  • -Dversion version
  • -Dpackaging 包类型 jarwar
  • -Dfile 包本地路径
  • -Durl 仓库地址
  • -DrepositoryId 仓库名称

你可能感兴趣的:(maven)