我是靠谱客的博主 微笑电脑,这篇文章主要介绍maven deploy异常,现在分享给大家,希望可以做个参考。

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

需要在POM中加入分发配置

<distributionManagement>
    <repository>
        <id>releases</id>
        <name>releases</name>
        <url>http://mavenhost/.../releases/</url>
    </repository>
    <snapshotRepository>
        <id>snapshot</id>
        <name>snapshot</name>
        <url>http://mavenhost/.../snapshots/</url>
    </snapshotRepository>
</distributionManagement>

最后

以上就是微笑电脑最近收集整理的关于maven deploy异常的全部内容,更多相关maven内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部