Table of Contents

About

A prefix is a named alias for a plugin.

Management

Setting a prefix to a goal

Automatic

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

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-plugin-plugin</artifactId>
	<version>3.4</version>
	<configuration>
		<goalPrefix>hello</goalPrefix>
	</configuration>
........
</plugin>

Execution of a goal with a plugin prefix

<code dos>
mvn prefix:goal@executionId

Documentation / Reference