Skip to content

Instantly share code, notes, and snippets.

@rizkykojek
rizkykojek / gist:2322990ac9942d7f47cbde43cc2e4ea1
Created November 14, 2019 09:06 — forked from ansell/gist:1141550
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
@rizkykojek
rizkykojek / docker-rm-images.md
Created November 14, 2019 09:06 — forked from alferov/docker-rm-images.md
Remove all (untagged) images and containers from Docker
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")

References: