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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -