美文网首页
Maven命令集锦

Maven命令集锦

作者: WangUL | 来源:发表于2019-07-31 08:49 被阅读0次

Maven部署包到私服

  • 命令 mvn deploy:deploy-file

  • 参数(ps:xxx只是一个占位符,需要实际参数进行替换)

  • -DgroupId=xx.xxxx(坐标:groupId)

  • -DartifactId=xxxxx(坐标:artifactId)

  • -Dversion=1.0.6-SNAPSHOT (版本)

  • -Dfile=C:\Users\think12\Desktop\Hello\xxxx-1.0.6-SNAPSHOT.jar(所上传的jar包的绝对路径)

  • -Durl=http://xxx.xxx.xxx.xxx:8082/repository/hz-snapshot/ (远程仓库的地址)

  • -DrepositoryId=maven81(对应着setting.xml中的server id ,用于身份识别)

相关文章

网友评论

      本文标题:Maven命令集锦

      本文链接:https://www.haomeiwen.com/subject/iqwarctx.html