What I did:
When I open the project in IntelliJ IDEA, I get three errors in the pom.xml
:
vaadin-maven-plugin
for prepare-frontend
build goal: Plugin 'com.vaadin:vaadin-maven-plugin:20.0.1' not foundvaadin-maven-plugin
: Plugin 'com.vaadin:vaadin-maven-plugin:20.0.1' not foundThe Maven Central repository is configured in the pom.xml
file as a repository and as a plugin repository. Using my browser I can find the vaadin-maven-plugin
in version 20.0.1
in the repository: https://mvnrepository.com/artifact/com.vaadin/vaadin-maven-plugin/20.0.1
When I change the version of the vaadin-maven-plugin
to 19.0.7
and the version of the spring-boot-starter-parent
to 2.4.5
, the errors disappear and the dependencies could be found.
I am not behind a proxy and I don't have a firewall running on my computer. I use Apache Maven 3.8.1 and AdoptOpenJDK 16.0.1.
Any ideas what I am missing?
Sorry, the problem was related to IntelliJ IDEA. The fix was really easy:
Menu "File > Invalidate Caches", select "Clear file system cache and Local History" and "Clear downloaded shared indexes", click on "Invalidate and Restart".
Looks like some cache or index files of IntelliJ got corrupted. Opening the project after the restart took a little bit longer because IntelliJ needs to reindex everything, but the three errors in the pom.xml
are gone.
Sorry, I totally forgot about the caching of IntelliJ…