maven-hpi-plugin icon indicating copy to clipboard operation
maven-hpi-plugin copied to clipboard

Rename `maven-hpi-plugin` to `hpi-maven-plugin`

Open basil opened this issue 1 year ago • 1 comments

Our Maven build contains the following warning:

Artifact IDs of the format maven-___-plugin are reserved for plugins in the group ID org.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 ID org.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

basil avatar Jun 30 '23 17:06 basil

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 to jpi
  • Switching default file extension from hpi to jpi

basil avatar Jul 27 '23 21:07 basil