Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

前端 未结 19 2044
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 05:09

I have install maven in my machine. I have properly set the class-path and maven home folder. Every time I execute mvn clean install, it gives me exception. I h

19条回答
  •  一生所求
    2020-11-30 05:19

    The error is due to maven official repository being not accessible. This repo (https://repo.maven.apache.org/maven2/) is not accessible so follow these steps:

    1. Firstly delete your /home/user/.m2 folder
    2. create .m2 folder at user home and repository folder within .m2
    3. copy the default settings.xml to .m2 folder
    4. Change mirrors as follows in the settings.xml as shown in below snap mirror_settings

    
      
        UK
        UK Central
        http://uk.maven.org/maven2
        central
      
    

    1. Execute the mvn clean commands now .....

提交回复
热议问题