Skip to content

Instantly share code, notes, and snippets.

@ansell
Created August 12, 2011 06:06
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ansell/1141550 to your computer and use it in GitHub Desktop.
Save ansell/1141550 to your computer and use it in GitHub Desktop.
Maven: Compiling and installing test jar without running them
mvn -DskipTests test-compile jar:test-jar install
the similar command below, will not compile or package the jar file (if you are using the surefire plugin) so, don't use it if you want to distribute the test jar file without running the tests
mvn -Dmaven.test.skip test-compile jar:test-jar install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment