You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (Jira)" <ji...@apache.org> on 2021/09/19 13:22:00 UTC
[jira] [Commented] (MENFORCER-399) requireVariable =
requireProperty or requireEnvironmentVariable
[ https://issues.apache.org/jira/browse/MENFORCER-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417331#comment-17417331 ]
Karl Heinz Marbaise commented on MENFORCER-399:
-----------------------------------------------
Doesn't this https://maven.apache.org/enforcer/enforcer-rules/requireProperty.html fit your needs? If not can you explain the differences?
> 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
> Priority: Major
>
> 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)