Maven plugins can not be found in IntelliJ

前端 未结 30 1077
暗喜
暗喜 2020-12-04 10:09

After updating IntelliJ from version 12 to 13, the following Maven-related plugins cannot be resolved:

org.apache.maven.plugins:maven-clean-plugin:2.4.1
org.a         


        
30条回答
  •  有刺的猬
    2020-12-04 10:40

    If an artefact is not resolvable Go in the ditectory of your .m2/repository and check that you DON'T have that kind of file :

    build-helper-maven-plugin-1.10.pom.lastUpdated

    If you don't have any artefact in the folder, just deleted it, and try again to re-import in IntelliJ.

    the content of those file is like :

    #NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
    #Fri Mar 10 10:36:12 CET 2017
    @default-central-https\://repo.maven.apache.org/maven2/.lastUpdated=1489138572430
    https\://repo.maven.apache.org/maven2/.error=Could not transfer artifact org.codehaus.mojo\:build-helper-maven-plugin\:pom\:1.10 from/to central (https\://repo.maven.apache.org/maven2)\: connect timed out
    

    Without the *.lastUpdated file, IntelliJ (or Eclipse by the way) is enable to reload what is missing.

提交回复
热议问题