Configuring maven

On Windows 7 one may get the following error message:

caught when connecting to the target host: Permission denied: connect

to fix the problem

set “MAVEN_OPTS=-Djava.net.preferIPv4Stack=true” \

in mvn.cmd