Set the following variable:
Your output from running ‘mvn package’ should resemble something like:
... [INFO] resources:testResources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:testCompile [INFO] Not compiling test sources [INFO] surefire:test [INFO] Tests are skipped. [INFO] war:war [INFO] Exploding webapp... ...