How to force maven update?

后端 未结 25 2456
失恋的感觉
失恋的感觉 2020-11-22 03:18

I imported my already working project on another computer and it started to download dependencies.

Apparently my internet connection crashed and now I get the foll

25条回答
  •  不要未来只要你来
    2020-11-22 04:00

    I had this problem for a different reason. I went to the maven repository https://mvnrepository.com looking for the latest version of spring core, which at the time was 5.0.0.M3/ The repository showed me this entry for my pom.xml:

    
    
        org.springframework
        spring-core
        5.0.0.M3
    
    

    Naive fool that I am, I assumed that the comment was telling me that the jar is located in the default repository.

    However, after a lot of head-banging, I saw a note just below the xml saying "Note: this artifact it located at Alfresco Public repository (https://artifacts.alfresco.com/nexus/content/repositories/public/)"

    So the comment in the XML is completely misleading. The jar is located in another archive, which was why Maven couldn't find it!

提交回复
热议问题