title: Maven hangs after running Spring JUnit test
body: <p>Having a problem completing a build after unit tests with maven against a Spring application.  I noticed that the mvn install was not completing, and that it appeared to hang after running all the Unit tests.  From the cmd line if I run <code>mvn install</code> I get the tests to complete, but the build hangs</p>
  
  <pre><code>Results :
  
  Tests run: 34, Failures: 0, Errors: 0, Skipped: 0
  
  14:20:15,588 [Thread-3] INFO  GenericApplicationContext  - Closing org.springframework.context.support.GenericApplicationContext@10a3b24: startup date [Wed Apr 25 14:20:08 EDT 2012]; root of context hierarchy
  14:20:15,589 [Thread-3] INFO  DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@16c163f: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,sysModel,alarmList,resourcePool,sysParams,stationHelper,commandTracker,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
  14:20:15,595 [Thread-7] INFO  GenericApplicationContext  - Closing org.springframework.context.support.GenericApplicationContext@c5577c: startup date [Wed Apr 25 14:20:10 EDT 2012]; root of context hierarchy
  14:20:15,596 [Thread-7] INFO  DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10952e8: defining beans [alarmDao,purgeDao,xactionDao,dataSource,sysModel,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
  </code></pre>
  
  <p>Thats the end of it.  Two threads running, not sure what I've done there.  Anyway, to troubleshoot I removed all the test and got the program to build completely.  If I run <code>mvn install -DskipTests</code>, I get it to complete.  Finally I added one JUnit test that was essentially a system.out.println("hello world");.  I could get the installation to run the test and complete the installation by commenting out the JUnit annotation "@RunWith(SpringJUnit4ClassRunner.class)".  I'm using Spring 3.1.0.RELEASE.</p>
  
  <p>This problem with the build is from my development machine on Windows7, but our Linux based (Ubuntu 11.10). Hudson CI server successfully runs Maven install on the same project for hourly builds, using the same SVN repository.  </p>