How can i set up an environment variable (in other words internally accessible by System.getenv(\"APP_HOME\")
in a pom file?
APP_HOME=/path/home
The documentation of the maven-surefire-plugin show examples and describes how to do such things of setting up system properties.
propertyValue
${project.build.directory}
[...]
It might be better to use them instead of environment variable, cause it's simpler to use them, cause env variable needed to setup correctly and the cmd.exe and the jvm must be restarted to get them working.
It is not necessary to configure the includes for the tests, cause maven-surefire-plugin has already the following defaults:
**/Test*.java
**/*Test.java
**/*TestCase.java