Maven enforcer Plugin

From NovaOrdis Knowledge Base
Jump to: navigation, search




The plugin checks rules and warns or fails the build if conditions are not met.

The list of rules the plugin can enforce is specified here:

The enforcer version range syntax is specified here:

The enforcer plugin binds to the validate phase, which is the first phase in the lifecycle.

One of the places this plug in is used is the <activation> element of a profile.


Fail if Files Do Not Exist

Works with both files and directories. For directories, use the same <requireFilesExist>.

                  <message>Custom message</message>