org.apache.maven.exception
Class DefaultExceptionHandlerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.exception.DefaultExceptionHandlerTest
All Implemented Interfaces:
junit.framework.Test

public class DefaultExceptionHandlerTest
extends junit.framework.TestCase

Author:
Barrie Treloar

Constructor Summary
DefaultExceptionHandlerTest()
           
 
Method Summary
 void testJdk7ipv6()
          Running Maven under JDK7 may cause connection issues because IPv6 is used by default.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultExceptionHandlerTest

public DefaultExceptionHandlerTest()
Method Detail

testJdk7ipv6

public void testJdk7ipv6()
Running Maven under JDK7 may cause connection issues because IPv6 is used by default.

e.g running mvn site:run will cause Jetty to fail.

The resolution is to add -Djava.net.preferIPv4Stack=true to the command line as documented in http://cwiki.apache.org/confluence/display/MAVEN/ConnectException



Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.