enforcer:recommend

Full name:

org.apache.maven.plugins:maven-enforcer-plugin:1.4:recommend

Description:

This goal executes the defined enforcer-recommendations once per module. In contrast to EnforceMojo it will never fail the build, i.e. it will only warn.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: validate.

Required Parameters

Name Type Since Description
recommendations EnforcerRule[] - Array of objects that implement the EnforcerRule interface to execute.

Optional Parameters

Name Type Since Description
ignoreCache boolean - Use this flag to disable rule result caching. This will cause all rules to execute on each project even if the rule indicates it can safely be cached.
Default value is: false.
User property is: enforcer.ignoreCache.
skip boolean - Flag to easily skip all checks
Default value is: false.
User property is: enforcer.skip.

Parameter Details

ignoreCache:

Use this flag to disable rule result caching. This will cause all rules to execute on each project even if the rule indicates it can safely be cached.
  • Type: boolean
  • Required: No
  • User Property: enforcer.ignoreCache
  • Default: false

recommendations:

Array of objects that implement the EnforcerRule interface to execute.
  • Type: org.apache.maven.enforcer.rule.api.EnforcerRule[]
  • Required: Yes

skip:

Flag to easily skip all checks
  • Type: boolean
  • Required: No
  • User Property: enforcer.skip
  • Default: false