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

Environment variables .env file should execute along with maven commands

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • None
    • 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

            Unassigned Unassigned
            Deminem AUrooj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: