I tried the other answers, but none of them solved this problem for me.
The problem disappeared when I explicitly added the groupId
like this:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
Once the color of the version number changed from red to black and the problem disappeared from the Problems
tab the groupId
can be removed again from the problematic plugin, the error does not show up again and the version number even shows up as suggestion for version
.