美文网首页
maven 聚合工程Could not find artifac

maven 聚合工程Could not find artifac

作者: 前进的码农 | 来源:发表于2020-11-26 21:56 被阅读0次

问题描述

父类工程mvn clean 的时候报这个错误

原因

子工程里面引入父类工程的时候去掉relativePath 去掉下面的relativePath

    <parent>
        <groupId>com.ethan</groupId>
        <artifactId>aliclound</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

relativePath含义

image.png

上面设置了空值所以会从仓库中拉取,但是仓库中又拉不到,所以报错给你看了,这里我们直接去掉

相关文章

网友评论

      本文标题:maven 聚合工程Could not find artifac

      本文链接:https://www.haomeiwen.com/subject/scaziktx.html