Can anyone explain what -D indicates in maven command: mvn clean install -DskipTests
You define a property that can be read by a Maven Plugin or being used inside the pom.
$> mvn --help usage: mvn [options] [] [] Options: ... -D,--define Define a system property ...
In this particular case you tell the maven-surefire-plugin to skip tests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With