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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -