Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6941

Environment variables .env file should execute along with maven commands

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Apache maven plugin for running the core commands such as:

       
      {code:java}
      mvn clean package 
      {code}

      Description

      Currently, I'm not sure if the maven core support to run the environment variable file `.env` along with maven commands such as:

      mvn clean install -DenvFilePath=/path/<filename>.env 
      

      or 

      mvn clean deploy -DenvFilePath=/path/<filename>.env

      It should execute the `.env` file and set all the environment variables before running the maven plugins such as maven-surefire for testing.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Deminem AUrooj
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: