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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -