[ https://issues.apache.org/jira/browse/MNG-6941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385013#comment-17385013 ]
Herve Boutemy edited comment on MNG-6941 at 7/21/21, 7:49 PM: -------------------------------------------------------------- You can use the `mavenrc` file for that (see MNG-7184). What is your usecase? was (Author: michael-o): You can use the `mavenrc` file for that. What is your usecase? > Environment variables .env file should execute along with maven commands > ------------------------------------------------------------------------ > > Key: MNG-6941 > URL: https://issues.apache.org/jira/browse/MNG-6941 > Project: Maven > Issue Type: Improvement > Environment: Apache maven plugin for running the core commands such > as: > > {code:java} > mvn clean package > {code} > Reporter: AUrooj > Priority: Major > Labels: improvement > Fix For: waiting-for-feedback, wontfix-candidate > > > Currently, I'm not sure if the maven core support to run the environment > variable file `.env` along with maven commands such as: > {code:java} > mvn clean install -DenvFilePath=/path/<filename>.env > {code} > or > {code:java} > mvn clean deploy -DenvFilePath=/path/<filename>.env{code} > It should execute the `.env` file and set all the environment variables > before running the maven plugins such as *maven-surefire* for testing. -- This message was sent by Atlassian Jira (v8.3.4#803005)