Via the <configuration> tags.

There you should have:

<configuration>
        <foo>bar</foo>
</configuration>

And if you need to pass it in on the command line, you may want to do something 
more like:

<properties>
        <foo>bar</foo>
</properties> 

...

<configuration>
        <foo>${prop}</foo>
</configuration>

So if someone uses -Dfoo=someval, that will take precedence and if nothing is 
specified, the properties block will take precedence.

-----Original Message-----
From: sean.chen(陈思淼) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 2:15 AM
To: Maven Users List
Subject: How to send argument to plugin

I know We can use mvn XXX -DmyArg=XXX to send the argument to the plugin.but 
how can I get it in my plugin?

Reply via email to