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
Post a Comment