快捷搜索: 长连接 前端 源码 pan

Deployment failed: repository element was not specified in the POM inside distributionManagement...

项目发版

    执行脚本 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..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
经验分享 程序员 微信小程序 职场和发展