A week ago, Maven started shouting “The plugin ‘org.apache.maven.plugins:maven-war-plugin’ does not exist or no valid version could be found”. What the…?! how can “maven-war-plugin” not exist?? Besides, it is in my repository!
As it turns out, it is a reasonably common issue. I managed to find some help on codehaus’ site, and it did help. But not every time.
Eventually, the best solution seems to simply delete the local repository and let Maven repopulate it.
From what I understand, it sometimes happens that some files (maybe the maven-metadata-central.xml ones?) get corrupted. Good luck when that happens on a enterprise-wide repository…