Is it possible to set env vars in pom.xml that junit tests uses? Netbeans can get env vars and builds project correnctly. But when i use command line (mvn clean -> mvn install), build fails due to test errors.
Thanks.
Is it possible to set env vars in pom.xml that junit tests uses? Netbeans can get env vars and builds project correnctly. But when i use command line (mvn clean -> mvn install), build fails due to test errors.
Thanks.
There are two approaches I know.
Commandline:
You can pass it in command line like
Using pom :
If
AM_HOM
is the variable and the value isconf
,make entry like below.