zoukankan      html  css  js  c++  java
  • Maven项目在更新过程停止,再更新无效-->解决

     ---类似网友问题:但我按照这样无法解决。

    eclipse中maven项目jar包不会自动下载解决办法 - wavemelody - 博客园
    http://www.cnblogs.com/mymelody/p/5616685.html

    eclipse的maven无法自动下载jar包 - 自古红蓝出CP的博客 - CSDN博客
    http://blog.csdn.net/Blue_Red_1314/article/details/74003091

    -------------

    后来本人换了一个新的eclipse IDE,一个新的workspace,一个新的代码路径,从新SVN代码下来,都无法解决。

    --------------------

    Description    Resource    Path    Location    Type
    The container 'Maven Dependencies' references non existing library 'F:ProjectsJava.m2
    epositoryorg
    springframeworkootspring-boot-starter-data-jpa1.5.6.RELEASEspring-boot-starter-data-jpa-1.5.6.RELEASE.jar'
    fsjxb Build path Build Path Problem

    本人决定做实验,针对其中一个 jar包 到仓库去看看。

    查看本地仓库的对应的文件夹,发现里面根本没有这个jar包(之前就知道),一直思考为什么不会自动下载。

      

    现在做个试验,把下面四个文件删除,再更新maven项目看看是否会自动下载:

    spring-boot-starter-data-jpa-1.5.6.RELEASE.pom;
    spring-boot-starter-data-jpa-1.5.6.RELEASE.pom.lastUpdated;
    spring-boot-starter-data-jpa-1.5.6.RELEASE.pom.sha1;
    \_remote.repositories;

    更新后变成:没有解决

    spring-boot-starter-data-jpa-1.5.6.RELEASE-sources.jar;
    spring-boot-starter-data-jpa-1.5.6.RELEASE-sources.jar.lastUpdated;
    spring-boot-starter-data-jpa-1.5.6.RELEASE-sources.jar.sha1;
    spring-boot-starter-data-jpa-1.5.6.RELEASE.pom;
    spring-boot-starter-data-jpa-1.5.6.RELEASE.pom.sha1;
    \_remote.repositories;

    整个文件夹删除后,更新,变成以下:没有解决。--不知道为什么就是不下载,奔溃。

      

    后来发现我的本地仓库已经很大了,是不是这个问题呢,后来证实不是。仓库多大都可以。

      

        

    -----window-show view-maven repositories 开始折腾这个 索引问题,最后无果。

    细心考虑:决定对比笔记本 maven的配置:发现配置一模一样。

    解决:

      

    原来Reindex按钮要点击,更新本地仓库的索引。一更新,maven立刻自己下来了对应jar包,项目完美运行。教训呀。

    那为什么之前项目会认为jar包已经下载了呢?还有一种可能:之前曾经没有切换为本地仓库,已经更新过项目,对应的jar包都已经下载到

    C:Users你的用户名.m2 epository 下面了。

      

  • 相关阅读:
    Interview with BOA
    Java Main Differences between HashMap HashTable and ConcurrentHashMap
    Java Main Differences between Java and C++
    LeetCode 33. Search in Rotated Sorted Array
    LeetCode 154. Find Minimum in Rotated Sorted Array II
    LeetCode 153. Find Minimum in Rotated Sorted Array
    LeetCode 75. Sort Colors
    LeetCode 31. Next Permutation
    LeetCode 60. Permutation Sequence
    LeetCode 216. Combination Sum III
  • 原文地址:https://www.cnblogs.com/rogge7/p/7486691.html
Copyright © 2011-2022 走看看