Skip to content

Instantly share code, notes, and snippets.

@xlbruce
Created June 6, 2016 17:56
Show Gist options
  • Save xlbruce/66da9659322babaf2dc2cc7a0d4500cd to your computer and use it in GitHub Desktop.
Save xlbruce/66da9659322babaf2dc2cc7a0d4500cd to your computer and use it in GitHub Desktop.
Sometimes, tests pass fine on Eclipse, but fail on Maven Surefire
http://stackoverflow.com/questions/3365628/junit-tests-pass-in-eclipse-but-fail-in-maven-surefire
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<reuseForks>false</reuseForks>
<forkCount>1</forkCount>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment