This error occurs when you refer to a goal that is not present in a plugin. The usual causes for this are:
- A simple typo in the goal name, either on the command line or in the
<goal>
element of the POM. - You try to employ a goal that is only available in a later version of the plugin.
In the latter case, you should double-check the documentation of the goal in question and update the plugin version in your POM if required. The documentation for many common Maven plugins can be reached via our plugin index.
Tip: If you don't want to or can't browse the online documentation for a plugin, you can also invoke something like
mvn help:describe -Dplugin=org.apache.maven.plugins:maven-antrun-plugin
to learn more about a plugin and its goals. Many of the newer plugin versions have this help integrated, so for those
mvn org.apache.maven.plugins:maven-antrun-plugin:help
can be used as well.