$ mvn org.jvnet.hudson.tools:maven-hpi-plugin:1.17:create
$ mvn org.jvnet.hudson.tools:maven-hpi-plugin:1.17-SNAPSHOT:create
Which worked for me. If you are failing to achieve this step, verify what version of the maven-hpi-plugin is actually in your system.
This will ask you a few question, like the groupId (the maven jargon for the package name) and the artifactId (the maven jargon for your project name), then create a skeleton plugin from which you can start with. Make sure you can build this: