You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mirko Friedenhagen <mi...@friedenhagen.de> on 2010/03/13 21:30:09 UTC

Re: How to find out which parameters can be specified as command-line properties?

Am 13.03.2010 um 03:06 schrieb sebb:
> Some plugin parameters are settable as command-line properties.
> For example, the Surefire plugin accepts the parameter <argLine> in
> the POM and the property -DargLine on the command-line.
> 
> Surefire also accepts <skipTests> and -DskipTests=true.
> 
> However, Surefire accepts the <skip> parameter, but ignores -Dskip=true.
> 
> How can one find out which parameters are settable as command-line
> properties for a given plugin other than by trial and error? Is there
> a rule for this? Or a help command?
> 

Hello Sebb,

mvn help:describe -Dplugin=org.apache.maven.plugins:maven-surefire-plugin -Ddetail=true

will show you the goals and their options.

For the command line parameter version of the options refer to e.g.:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skip

There you see, that <skip> translates to maven.test.skip on the command line.

Regards
Mirko




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to find out which parameters can be specified as command-line properties?

Posted by Paul Benedict <pb...@apache.org>.
Yup, and you can use an abbreviated version too:
mvn help:describe -Dplugin=surefire -Ddetail=true

On Sat, Mar 13, 2010 at 2:30 PM, Mirko Friedenhagen
<mi...@friedenhagen.de> wrote:
> Am 13.03.2010 um 03:06 schrieb sebb:
>> Some plugin parameters are settable as command-line properties.
>> For example, the Surefire plugin accepts the parameter <argLine> in
>> the POM and the property -DargLine on the command-line.
>>
>> Surefire also accepts <skipTests> and -DskipTests=true.
>>
>> However, Surefire accepts the <skip> parameter, but ignores -Dskip=true.
>>
>> How can one find out which parameters are settable as command-line
>> properties for a given plugin other than by trial and error? Is there
>> a rule for this? Or a help command?
>>
>
> Hello Sebb,
>
> mvn help:describe -Dplugin=org.apache.maven.plugins:maven-surefire-plugin -Ddetail=true
>
> will show you the goals and their options.
>
> For the command line parameter version of the options refer to e.g.:
> http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skip
>
> There you see, that <skip> translates to maven.test.skip on the command line.
>
> Regards
> Mirko
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org