我是靠谱客的博主 壮观钥匙,这篇文章主要介绍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
- 项目发版
- 报错信息
- 解决方案
- 参考链接
项目发版
-
执行脚本
复制代码1
2
3
4
5clean deploy -U -Dmaven.test.skip=true
报错信息
-
Deployment failed
复制代码1
2
3
4Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
解决方案
-
通过在主 pom.xml 中的 distributionManagement 选项卡下添加存储库 url
复制代码1
2
3
4
5
6
7
8
9
10
11
12<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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复