40岁就退休 2017-07-20 08:25 采纳率: 100%
浏览 3855
已采纳

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>
  • 写回答

1条回答

  • Hefei19881002 2017-07-20 09:23
    关注

    看这行 points at wrong local POM @ 指向了一个错误的本地pom 你看看是不是你的版本号错了 或者重新rebuildindex一下

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已采纳回答 12月15日

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料