I\'ve ported a project from Eclipse to Maven and I need to set an environment variable to make my project work.
In Eclipse, I go to \"Run -> Run configurations\" and
in your code add:
System.getProperty("WSNSHELL_HOME")
Modify or add value property from maven command:
mvn clean test -DargLine=-DWSNSHELL_HOME=yourvalue
If you want to run it in Eclipse, add VM arguments in your Debug/Run configurations
-DWSNSHELL_HOME=yourvalue

you don't need to modify the POM