maven-hpi-plugin
maven-hpi-plugin copied to clipboard
Rename `maven-hpi-plugin` to `hpi-maven-plugin`
Our Maven build contains the following warning:
Artifact IDs of the format
maven-___-plugin
are reserved for plugins in the group IDorg.apache.maven.plugins
. Please change your artifact ID to the format___-maven-plugin
. In the future this error will break the build.
This notice elaborates further:
Calling it
maven-<yourplugin>-plugin
(note "Maven" is at the beginning of the plugin name) is strongly discouraged since it's a reserved naming pattern for official Apache Maven plugins maintained by the Apache Maven team with group IDorg.apache.maven.plugins
. Using this naming pattern is an infringement of the Apache Maven Trademark.
Renaming this plugin is trivial, but the real work in this task is adapting all consumers to the new name. In addition the hpi-plugin.version
property in the core and plugin parent POMs should be renamed to hpi-maven-plugin.version
. PCT consumes this, among other things.
Reference: https://maven.apache.org/guides/plugin/guide-java-plugin-development.html
Since this change is large and fairly disruptive, it may be worth considering tackling the rename from HPI to JPI as part of this as well:
-
jpi-maven-plugin
- Switching packaging from
hpi
tojpi
- Switching default file extension from
hpi
tojpi