0

In IntelliJ, I'm getting the error

Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found

for the below code

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

I can not change the code, and it is working for my colleagues

I have tried:

From the Preferences in Intelli J, navigate to "Build, Execution, Deployment > Build Tools > Maven", check the "Use plugin registry", and click "OK". Then "File > Invalidate Caches / Restart" to reload IntelliJ. The error will go away automatically.

But it did not work, any ideas?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Saja
  • 1
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 04 '21 at 05:47

1 Answers1

0

The plugin was not downloaded. Download maven for here and extract it. Set maven location on the environment variable so that it can run from anywhere. Open CMD/Terminal and then do:

mvn clean install

Inside the project.

ouflak
  • 2,458
  • 10
  • 44
  • 49