Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved

前端 未结 21 1489
抹茶落季
抹茶落季 2020-12-08 08:15

I got the following error message when I tried to create a Maven project in eclipse. Many have posted about proxies in settings.xml file and also flush the .m2 folder forcin

21条回答
  •  抹茶落季
    2020-12-08 08:26

    Maybe your network is slow, so that jar isn't downloaded completely.

    There are two methods:

    a. find your .m2 folder, you can find some path like this 'org/apache/maven/plugins/maven-resources-plugin', you need only delete this foldler 'maven-resources-plugin', because others are downloaded well.

    Then maven build your project.

    If other problem occures, repeat this process again.

    b. you can change a more quick maven source.

    Firstly, you should find maven's settings file(window ->prefernces -> maven -> user settings). If it is empty, you can create a new one (any path, for example, .m2/settings).

    Secondly, add sth like this (From https://blog.csdn.net/liangyihuai/article/details/57406870). This example uses aliyun's maven.

    
    
          
              
                alimaven  
                aliyun maven  
                http://maven.aliyun.com/nexus/content/groups/public/  
                central          
              
          
    
    

    Thirdly, maven build again. (before this, you should delete your .m2 folder's files)

提交回复
热议问题