Maven: The Complete Reference - 6.1. Maven Command Line Options - Sonatype.com
The following sections detail Maven's command line options. 6.1.1. Defining Properties To define a property use the following option on the command line: -D, --define
Defines a system property This is the option most frequently used to customized the behavior of Maven plugins. Some examples of using the -D $ mvn help:describe -Dcmd=compiler:compile $ mvn install -Dmaven.test.skip=true Properties defined on the command line are also available as properties to be used in a Maven POM or Maven Plugin. Form more information about referencing Maven properties, see Chapter 9, Properties and Resource Filtering . Properties can also be used to activate build profiles. For more information about Maven build profiles, see Chapter 5, Build Profiles . 6.1.2. Getting Help To list the available command line parameters, use the following command line option: -h, --help $ mvn --help usage: mvn [options] [] [] Options: -am,--also-makeIf project list is specified,
Read full article from Maven: The Complete Reference - 6.1. Maven Command Line Options - Sonatype.com
No comments:
Post a Comment