Maven plugins can not be found in IntelliJ

前端 未结 30 1081
暗喜
暗喜 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:45

    Remove your local Maven unknown plugin and reimport all maven projects. This will fix this issue.

    You can find it under View > Tool Windows > Maven :

    0 讨论(0)
  • 2020-12-04 10:45

    I was recently faced with the same issue. None of the other solutions resolved the red error lines.

    What I did was run the actual targets in question (deploy, site). I could see those dependencies then being fetched.

    After that, a reimport did the trick.

    0 讨论(0)
  • 2020-12-04 10:46

    Here is what I tried to fix the issue and it worked:

    1. Manually deleted the existing plugin from the .m2 repo
    2. Enabled "use plugin registry" in IntelliJ
    3. Invalidated the cache and restarted IntelliJ
    4. Reimported the maven project in IntelliJ

    After following above steps, the issue was fixed. Hopefully this helps you as well.

    0 讨论(0)
  • 2020-12-04 10:46

    this might help someone down the line

    i faced similar issues, my system was not able to resolve the proxy server
    so connected to the local wifi hotpsot.

    0 讨论(0)
  • 2020-12-04 10:47

    This worked for me:

    • Close IDEA
    • Delete "*.iml" and ".idea" -directories(present in the root folder of project)
    • Run "mvn clean install" from the command-line
    • Re-import your project into IDEA

    After re-importing the entire project, installation of dependencies will start which will take some minutes to complete depending upon your internet connection.

    0 讨论(0)
  • 2020-12-04 10:48

    Goto IntelliJ -> Preferences -> Plugin

    Search for maven, you will see 1. Maven Integration 2. Maven Integration Extension.

    Select the Maven Integration option and restart your Intellij

    0 讨论(0)
提交回复
热议问题