概述
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 failed: repository element was not specified in the POM inside distributionManagement...项目发版报错信息解决方案参考链接所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复