Maven deploys fail with Java 7, work with Java 6

If your maven deploys using Java 7 are failing but they work without issue using Java 6 the most likely cause is Java 7's default use of IPv6.  Many firewalls cannot (or will not) pass IPv6 traffic at this time.

To work around this, add the following to the MAVEN_OPTS environment variable:

-Djava.net.preferIPv4Stack=true
Have more questions? Submit a request

0 Comments

Article is closed for comments.