我是靠谱客的博主 壮观钥匙,这篇文章主要介绍Deployment failed: repository element was not specified in the POM inside distributionManagement...项目发版报错信息解决方案参考链接,现在分享给大家,希望可以做个参考。

Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter

  • 项目发版
  • 报错信息
  • 解决方案
  • 参考链接

项目发版

  • 执行脚本

    	
    	clean deploy -U -Dmaven.test.skip=true
    
    
    

报错信息

  • Deployment failed

    	
    	Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
    
    

解决方案

  • 通过在主 pom.xml 中的 distributionManagement 选项卡下添加存储库 url

    	<distributionManagement>
    	    <repository>
    	        <id>releases</id>
    	        <url>http://domain:port/content/repositories/releases</url>
    	    </repository>
    	    <snapshotRepository>
    	        <id>snapshots</id>
    	        <url>http://domain:port/content/repositories/snapshots</url>
    	    </snapshotRepository>
    	</distributionManagement>
    
    

参考链接

  • maven deploy时报错

    https://blog.csdn.net/liuxiao723846/article/details/52604377

  • repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter

    https://syntaxfix.com/question/6997/repository-element-was-not-specified-in-the-pom-inside-distributionmanagement-element-or-in-daltdep-loymentrepository-id-layout-url-parameter

最后

以上就是壮观钥匙最近收集整理的关于Deployment failed: repository element was not specified in the POM inside distributionManagement...项目发版报错信息解决方案参考链接的全部内容,更多相关Deployment内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(103)

评论列表共有 0 条评论

立即
投稿
返回
顶部