How to fix "plugin was not found in any of the following sources"

32,701

Solution 1

I saw the problem even on command line and it helped when I added plugin management to the start of setting.gradle file:

pluginManagement {
    repositories {
        maven { url "https://plugins.gradle.org/m2/" }
        gradlePluginPortal()
    }
}

Solution 2

In my case, the issue was incorrect Gradle JVM version had to be changed in the gradle settings.

On changing the gradle JVM version to the Project's JVM version, this error got resolved.

enter image description here

Solution 3

I checked my proxy, it only access to a number of pages so the situation is on, after contacting technical staff, it worked.

Share:
32,701
steven nguyen
Author by

steven nguyen

Updated on August 02, 2022

Comments

  • steven nguyen
    steven nguyen almost 2 years

    I created a spring mvc project on Intellij IDE, when i build my project, some message is displayed. How can i resolve it?

    This is message displayed:

    Plugin [id: 'org.springframework.boot', version: '2.1.7.RELEASE'] was not found in any of the following sources:

    • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
    • Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.7.RELEASE') Searched in the following repositories: Gradle Central Plugin Repository