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>