scala - Set environment variable to shell from maven pom.xml -


in test scala code expecting environment variable, before running maven test if export value example export appname=myapp, works fine

instead of exporting in commandline, want set appname=myapp maven pom.xml, possible achieve ? tried below code in pom, not working

<plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-surefire-plugin</artifactid>             <version>2.20</version>             <executions>             <execution>             <phase>validate</phase>             </execution>             </executions>             <configuration>                 <environmentvariables>                     <app>mypp</app>                 </environmentvariables>             </configuration>         </plugin> 


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

string - Using python and postgres, variables within execute function? -