美文网首页
maven 命令打包到私服仓库

maven 命令打包到私服仓库

作者: archerdu | 来源:发表于2023-04-10 16:52 被阅读0次

    官网:
    https://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
    https://maven.apache.org/plugins/maven-deploy-plugin/usage.html

    实例

    mvn deploy:deploy-file -Durl="私服地址" -DrepositoryId="maven里配置的私服仓库id"  -DgeneratePom=false -DgroupId="groupId" -DartifactId="artifactId" -Dversion="版本" -Dpackaging=jar -Dfile="jar包路径" -DpomFile="pom文件路径"
    

    参考

    mvn deploy:deploy-file -Durl=file://C:\m2-repo \
                           -DrepositoryId=some.id \
                           -Dfile=your-artifact-1.0.jar \
                           [-DpomFile=your-pom.xml] \
                           [-DgroupId=org.some.group] \
                           [-DartifactId=your-artifact] \
                           [-Dversion=1.0] \
                           [-Dpackaging=jar] \
    
    

    相关文章

      网友评论

          本文标题:maven 命令打包到私服仓库

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