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
You could wrap your maven command in a bash script:
#!/bin/bash export YOUR_VAR=thevalue mvn test unset YOUR_VAR