Maven - Prefix (Plugin Alias)


A prefix is a named alias for a plugin.


Setting a prefix to a goal


The prefix assignation is done automatically if the plugin naming convention is used:

  • ${prefix}-maven-plugin
  • or maven-${prefix}-plugin (if the plugin is part of the Apache Maven project).

with the goal-prefix configuration

Example of prefix configuration in the pom.xml


Execution of a goal with a plugin prefix

<code dos>
mvn prefix:[email protected]

Documentation / Reference

Powered by ComboStrap