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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复