Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Plugin not found in IntelliJ IDE

I have a new error in my project that is in the pom.xml file. How can I fix it?

The error below shown in IntelliJ idea:

Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found  
like image 418
fatemehjafari Avatar asked Aug 18 '20 12:08

fatemehjafari


People also ask

How do I get Maven plugins for IntelliJ?

In the Project tool window, right-click your project and select Add Framework Support. In the dialog that opens, select Maven from the options on the left and click OK. IntelliJ IDEA adds a default POM to the project and generates the standard Maven layout in Project tool window.

Why Maven is not showing in IntelliJ?

In the file menu select settings -> plugins. search for maven, select maven, select enable. Restart intellij. Once restarted you will now have the option to start new maven project and maven functionality will be accessible in all your previous projects.

How do I resolve plugins in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Plugins. Find the plugin in the Marketplace and click Install.


3 Answers

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 Intelli J. The error will go away automatically.

like image 145
TheCodingAnalyst Avatar answered Oct 18 '22 15:10

TheCodingAnalyst


Add following code

    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${parent.version}</version>
    </plugin>

and then click on the icon as shown in screenshot, to load Maven changes in pom.xml file

enter image description here

like image 26
Vivek Singh Avatar answered Oct 18 '22 16:10

Vivek Singh


I had the same problem. This summer Intellij suddenly started throwing this error but build went through. I just had to specify version of plugin and it stopped throwing this error.

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <version>2.3.4.RELEASE</version>
</plugin>
like image 39
mixnix Avatar answered Oct 18 '22 17:10

mixnix