Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-142

Specify enforcer rule in command line without modifying any pom

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 3.0.0-M3
    • Plugin
    • None

    Description

      Hello,

      How could we specify enforcer:enforce rules from command line?

      I want to run command line like following without updating any pom.xml:
      mvn enforcer:enforce -Drules=com.acme.UseAcmeParentPom

      The goal of this enforcer:enforce rule is to check that Acme's
      developers write pom.xml which inherit from acme's parent pom.xml
      And because they may not inherit from acme's parent pom.xml, I cannot
      specify enforcer rule in.

      Regards,

      Arnaud.

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              rno Arnaud Bourrée
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: