Abhi
Abhi

Reputation: 173

What does -D indicate in maven command?

Can anyone explain what -D indicates in maven command: mvn clean install -DskipTests

Upvotes: 6

Views: 5332

Answers (1)

maba
maba

Reputation: 48075

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.

Upvotes: 8

Related Questions