Description
There's a difference between -DskipTests and -Dmaven.test.skip
skipTests prevents surefire plugin from running tests
maven.test.skip prevents maven-compiler-plugin to even build test sources
Whether -Dmaven.test.skip should be used really depends. It prevents an unnecessary environment requirements, since e.g. newer jdk or additional OS packages may be required for test builds.
On the other hand, once another project has a dependency on a test-jar type artifact of some of the other modules, the compilation fails: since maven-compiler-plugin was disabled, no artifact was ever produced for the module.
Steps to Reproduce
Please list the steps required to reproduce the issue:
run_macaron.sh analyze -purl pkg:maven/ch.qos.logback/logback-parent@1.5.25
run_macaron.sh gen-build-spec -purl pkg:maven/ch.qos.logback/logback-parent@1.5.25
Expected Behavior
The maven model contains the dependency from logback-classic to logback-core:test so it should have omitted the -Dmaven.test.skip=true.
Environment Information
macaron 0.20.0
Description
There's a difference between
-DskipTests and -Dmaven.test.skipskipTestsprevents surefire plugin from running testsmaven.test.skipprevents maven-compiler-plugin to even build test sourcesWhether
-Dmaven.test.skipshould be used really depends. It prevents an unnecessary environment requirements, since e.g. newer jdk or additional OS packages may be required for test builds.On the other hand, once another project has a dependency on a test-jar type artifact of some of the other modules, the compilation fails: since maven-compiler-plugin was disabled, no artifact was ever produced for the module.
Steps to Reproduce
Please list the steps required to reproduce the issue:
Expected Behavior
The maven model contains the dependency from
logback-classictologback-core:testso it should have omitted the-Dmaven.test.skip=true.Environment Information
macaron 0.20.0