Andy Law created MENFORCER-513:
----------------------------------

             Summary: Add rule to define and check for mutually exclusive 
profiles
                 Key: MENFORCER-513
                 URL: https://issues.apache.org/jira/browse/MENFORCER-513
             Project: Maven Enforcer Plugin
          Issue Type: New Feature
          Components: Standard Rules
            Reporter: Andy Law


I typically develop code that is run in different environments e.g., develop, 
sandbox, production etc., where I define the parameters specific to each 
environment in a separate profile. The code needs to be compiled and run for 
the specific environments, making those profiles mutually exclusive. I have 
seen this pattern and requirement detailed elsewhere, so I don't believe this 
is specific to _my_ development patterns.

It would be useful to have a rule to enforce the mutual exclusions, and 
optionally to ensure that one of the set of profiles is selected.

I have code written that performs this function as an additional rule within 
the Enforcer plugin. I'm happy to donate that code to the project if it is of 
interest to others. It's in a forked copy of the code so a pull request should 
be trivial if required.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to