But I thought expression="" was used to put vm args and other
environmental values into a parameter. In fact, this is what I do for
/**
* @parameter expression="${localRepository}"
*/
protected ArtifactRepository localRepository;
But everywhere else, I want to set the values from the pom.xml file of
the evoking module, because that is where the application context will
be known. I suppose I could set up a separate properties file and pull
the values in through expressions, but I think that's a cheat,
particularly as the doco at
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
Clearly implies that you can set the values of the paramters through the
pom.
> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 4 November 2008 3:06 PM
> To: Maven Users List
> Subject: Re: Mojo fails to read parameters fed via plugin config
>
> > Since there seems to be little or no doco or support issues around
> > this I'm obviously missing something obvious. Could someone kindly
> > point out to me what I've missed.
>
> Ugu, little to no doco?
> http://www.sonatype.com/book/reference/writing-plugins.html
>
> Glancing at the code you supplied, I think you are missing
> expression for most of your parameters:
> @parameter default-value="..." expression="..."
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
The information contained in this e-mail message and any accompanying files is
or may be confidential. If you are not the intended recipient, any use,
dissemination, reliance, forwarding, printing or copying of this e-mail or any
attached files is unauthorised. This e-mail is subject to copyright. No part of
it should be reproduced, adapted or communicated without the written consent of
the copyright owner. If you have received this e-mail in error please advise
the sender immediately by return e-mail or telephone and delete all copies.
Fairfax does not guarantee the accuracy or completeness of any information
contained in this e-mail or attached files. Internet communications are not
secure, therefore Fairfax does not accept legal responsibility for the contents
of this message or attached files.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]