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

'All' propery is not handled by RequireActiveProfile rule

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.4
    • None
    • None
    • Patch

    Description

      Although you have rules configured, as follows:

      ...
      <configuration> 
        <rules>
         <requireActiveProfile>
          <profiles>dev,selenium</profiles>
          <all>false</all>
         </requireActiveProfile>
       </rules>
       <fail>true</fail>
      </configuration> 
      
      

      And you run build : mvn clean install -Pselenium

      You still get error:

      Supported profiles: selenium,dev
      Profile "dev" is not activated.
      

      Fix is quite simple (tested on tag 1.1.1 and trunk) - please find in attachment.

      Best Regards,
      Maciej

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              makwieci Maciej Kwiecien
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: