You do not set a goal's parameters via the -D notation, you set properties
that way. You can, however, set a goal's paramters to a property via:

/**
* @parameter expression="${mypropertyfile}"
*/
private File mypropertyfile;

Which will allow your propertyfile to be set on the command-line in the way
you have given.

On 11/8/06, David Whitehurst <[EMAIL PROTECTED]> wrote:

What am I doing wrong?  I've created additional goals for a plugin for
Maven
and when I call the goal, I don't get the property.  Is my syntax wrong?

e.g.

mvn myplugin:mygoal -Dmypropertyfile=properties.xml

Is this correct syntax?

David




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to