How to set env variables for maven to run test correctly?

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.



There are two approaches I know.


You can pass it in command line like

mvn -DAM_HOME=conf install

Using pom :

If AM_HOM is the variable and the value is conf ,make entry like below.




Need Your Help

advanced filter search in wordpress


Is there a way (with a plugin or custom code) to create an advanced search like those links below?

Chart controls for MFC application?

user-interface visual-c++ mfc

I would like to have some suggestions about which third-part controls can we use in our Visual C++ MFC application?