Hello,

2012/2/15 sarmahdi <[email protected]>:
> Hi All,
>
> I tried maven thorugh netBeans. As this is not the right way to learn maven
> I am now running a running maven project thorugh command line
>
> I did mvn -h and saw some options: --define is something interesting i
> think, what does it do, how can i use it and how can it help me .
It's the way do define sys props tru cli (-D,--define <arg>
          Define a system property )
The sample is to override/define mojo/plugin property.
Perso, the most I use daily are:
* -Dsurefire.useFile=false (will output unit test trace in console)
*-Dtest=MyTest (to run only this unit test note the support of
-Dtest=MyTest#myMethod to run only this method).

You must have a look at plugin documentation to see which mojo/plugin
fields are configurable tru cli.

In plugin site documentation http://maven.apache.org/plugins (sample
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html)
Or tru cli : mvn surefire:help -Ddetail=true -Dgoal=test

So welcome in the Apache Maven world and I hope you will have fun :-)
>
> I will appreciate if any one can give me some info. I have been googling but
> i am not able to get anything on it. ha any one ever used it?
>
> Thanks
> Syed..
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/what-does-define-do-in-maven-tp5485392p5485392.html
> Sent from the Maven - Users mailing list archive at Nabble.com.



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to