My maven project intentionally only needs src/test/java
and src/test/resources
. After removing src/main/*
folders, the expected w
This is (according to me) the cleanest solution
for projects that don't contain production code but do contain tests:
org.apache.maven.plugins
maven-jar-plugin
true
org.apache.maven.plugins
maven-install-plugin
true
org.apache.maven.plugins
maven-deploy-plugin
true
It indicates what you want:
leaving test execution untouched.
Like @John Camerin mentioned it is NOT advised to use
unless the ONLY thing your pom should do is gather dependencies.
Otherwise, if you have tests, they would be skipped without warning, which is not what you want.