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

Add goal recommend which will only warn but never fail a build

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.3
    • None
    • Plugin
    • None
    • Patch

    Description

      In our company's parent POM we define a lot of rules, some of which are controversial or may not be easily fulfilled. The patch I attach defines a new goal "recommend" which will always warn but never fail. It's configuration is done by a new element recommendations which just holds a sequence of rules.

      I extracted most of EnforceMojo to AbstractEnforceMojo to avoid code duplication. I added an invoker test and all tests ran successfully.

      See https://github.com/apache/maven-enforcer/pull/4 as well for easier review.

      Attachments

        1. recommend-mojo.patch
          29 kB
          Mirko Friedenhagen

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              mfriedenhagen Mirko Friedenhagen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: