I got it now, had the annotation in the wrong place.  Thank you for the help

sinplicity wrote:
> 
> I see how you are using the annotation, but the basedir String is still
> null.  How do you actually get the basedir value set in the String?
> 
> 
> Olivier Lamy wrote:
>> 
>> Try with :
>> 
>>     /**
>>      * The current project base directory.
>>      *
>>      * @parameter expression="${basedir}"
>>      * @required
>>      */
>>     private String basedir;
>> 
>> --
>> Olivier
>> 
>> 2008/11/7 Scott Carter <[EMAIL PROTECTED]>:
>>> I am writing a Maven2 plugin where I need to be able to determine the
>>> basedir for the pom that is running.  I know that in a POM you can refer
>>> to
>>> ${basedir} for this value, but how would you access this value at a code
>>> level in a plugin?  Does someone have a code example of this?
>>>
>>> Thanks in advance
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Writing-Plugins-%3A-how-to-access-context-variables-tp20371807p20372248.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to