eclipse里maven项目设置了私服也设置了本地仓库,但是install时一直报错
问题描述:
maven项目,
install的时候报错,看了下,一直去apache的仓库去找,当然找不到啊。报错如下:
Non-resolvable parent POM: Failure to find com.th.supcom:super-parent:pom:1.2.7 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 10
在项目的pom.xml中已配置私服,setting.xml本地仓库配置了地址,但是报错里面还是去的apache.org里去找的,不知道为什么。
pom.xml私服配置
<!-- 配置私服release地址 -->
<distributionManagement>
<repository>
<id>Releases</id>
<url>nexus搭的私服url</url>
</repository>
<snapshotRepository>
<id>Snapshots</id>
<url>nexus搭的私服url</url>
</snapshotRepository>
<!-- site地址配置 -->
<site>
<id>sites-url</id>
<url>dav:${sites.url}/${project.artifactId}/${project.version}</url>
</site>
</distributionManagement>
答
看这行 points at wrong local POM @ 指向了一个错误的本地pom 你看看是不是你的版本号错了 或者重新rebuildindex一下