You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hüseyin Kartal (Jira)" <ji...@apache.org> on 2021/09/04 20:07:00 UTC

[jira] [Created] (MENFORCER-399) requireVariable = requireProperty or requireEnvironmentVariable

Hüseyin Kartal created MENFORCER-399:
----------------------------------------

             Summary: requireVariable = requireProperty or requireEnvironmentVariable
                 Key: MENFORCER-399
                 URL: https://issues.apache.org/jira/browse/MENFORCER-399
             Project: Maven Enforcer Plugin
          Issue Type: Improvement
          Components: Standard Rules
    Affects Versions: 3.0.0
            Reporter: Hüseyin Kartal


As far a i know maven doesn't care where a value for ${variable} comes from. In a pom you can access a env.variable or a property by ${variable}.

Also in some system the value is provided by an environment variable like CICD or by a property maybe a dev environment.

I would suggest a new standard rule "requireVariable"  which just look like maven for a value for this variable by property or environment.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)