The below rules and steps are mostly automated by simply running the Maven4Migration.java jbang script in the plugin directory.
The rules are quite simple
- the plugin can only depend on
org.apache.maven:maven-api-*artifacts (no any other maven related artifacts) at compile time - avoid plexus artifacts at compile time
- mojo annotations are now in
org.apache.maven.api.plugin.annotationspackage