1

In POM.xml I have:

`<artifactId>vaadin-maven-plugin</artifactId>`
`<version>23.2.1</version>` 

It doesn't recognise it and says Plugin 'com.vaadin:vaadin-maven-plugin:23.2.1' not found for both these lines of code

patrick.elmquist
  • 2,113
  • 2
  • 21
  • 35
San
  • 11
  • 2
  • Have you tried if the plugin actually works by building/running the tasks with the maven CLI? Or is this specific to intellij? – cfrick Sep 23 '22 at 08:19
  • check this: https://stackoverflow.com/questions/63468269/maven-plugin-not-found-in-intellij-ide – Rabhi salim Sep 23 '22 at 13:36

1 Answers1

0

The plugin itself can be found in Maven Central with that version number: https://search.maven.org/artifact/com.vaadin/vaadin-maven-plugin/23.2.1/maven-plugin

So the problem could either be that your pluginRepositories doesn't contain something like follows:

    <pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <url>https://repo.maven.apache.org/maven2</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    <!-- ... -->

...or that your IntelliJ Idea doesn't have access to Maven Central. Maybe you're using a private repository like Artifactory, for example.

Make sure you've clicked "Reload All Maven Projects" from the Maven tab, too.

ollitietavainen
  • 3,900
  • 13
  • 30