Maven Enforcer Plugin
  1. Maven Enforcer Plugin
  2. MENFORCER-93

[maven 3.x] configuration not recognized on <executions> level

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.0-beta-1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      maven 3.0-alpha-7, enforcer plugin 1.0-beta-1
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      I tried the example snippet from

      http://maven.apache.org/plugins/maven-enforcer-plugin/usage.html

      with enforcer plugin 1.0-beta-1 and maven 3.0-alpha-7.

      It seems the enforcer configuration is only recognized if moved up to the <plugin> level.
      <configuration> under <execution> is ignored. The plugin complains that no rules are configured.

      This may be a general maven 3 bug ...

      See example poms attached for reproducing the problem and an alternative pom with configuration on plugin level which works.

      Also includes

      mvn enforcer:enforce -X -e

      output.

      Regards
      Jan

        Activity

        Hide
        Benjamin Bentmann added a comment -

        As documented in Guide to Configuring Plug-ins, execution-level configuration does only apply for the particular execution and not a direct invocation of a goal from the CLI. Recent Maven versions recognize a special execution id for CLI executions as documented in Guide to Configuring Default Mojo Executions.

        Show
        Benjamin Bentmann added a comment - As documented in Guide to Configuring Plug-ins , execution-level configuration does only apply for the particular execution and not a direct invocation of a goal from the CLI. Recent Maven versions recognize a special execution id for CLI executions as documented in Guide to Configuring Default Mojo Executions .

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            Jan Sievers
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: