title: Setting environment variable in gatling scala maven is not working from terminal
body: <p>I am trying to read some of the values from environment variables for my gatling project. But when I execute maven command, environment values are not set. It is displaying null.</p>
  <p>I tried</p>
  <pre class="lang-xml prettyprint-override"><code>`mvn gatling:test -Dgatling.simulationClass=dev.RandomVinAndVehIdentifierGenerator -Dargline=env=dev.
  </code></pre>
  <p>I even created a bash file and then gave for a run but I am always getting below error.</p>
  <p>No configuration setting found for key 'null'</p>
  <p>I am reading the environment value using below code.</p>
  <pre><code> val env = System.getenv(&quot;env&quot;)
    var url =  ConfigFactory.load().getString(env + &quot;.hostURL&quot;) 
  </code></pre>
  <p>env is always set null</p>