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

前端 未结 19 2078
隐瞒了意图╮
隐瞒了意图╮ 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:32

    I faced the same problem, even if I was working on my home wifi connection, without any proxy requirements.

    My project was created at c:\users\<>\Workspace\Project\

    When I went to above location and ran

    mvn clean install

    I got below error:

    [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its de
    endencies could not be resolved: Failed to read artifact descriptor for org.apa
    he.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.ap
    che.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.mave
    .apache.org/maven2)
    

    It took me entire day to try ways and means to crack this, but the solution in my case, was damn simple.

    I moved my project to non-user specific location, at E:\Workspace\Project\

    This has done wonders for me!

提交回复
热议问题