You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter van de Hoef <pv...@springsite.com> on 2005/07/27 10:24:45 UTC

How to use the '@parameter alias'?

Hi

I'm trying to use the alias feature in plugin parameter definitions:
The syntax I'm using is:

/**
  * @parameter alias="bar"
  */
private String foo;

Then:

<configuration>
     <foo>maven</foo>
</configuration>

does work, but:

<configuration>
     <bar>maven</bar
</configuration>

does not.

What am I doing wrong?
Thanks in advance,
Peter van de Hoef


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to use the '@parameter alias'?

Posted by Peter van de Hoef <pv...@springsite.com>.
Done: http://jira.codehaus.org/browse/MNG-674

Brett Porter wrote:
> It seems it could be a bug. Would you mind putting it into JIRA?
> 
> - Brett
> 
> On 7/27/05, Peter van de Hoef <pv...@springsite.com> wrote:
> 
>>Yes that's a typo, I wrote this simplified sample out of my head to illustrate the problem. In the 'real' case the xml
>>is valid. Thanks anyway.
>>
>>Yann Le Du wrote:
>>
>>>Hi Peter,
>>>
>>>Are you missing a '>' in your closing bar tag or is it a copy/paste typo ?
>>>
>>>Yann
>>>
>>>
>>>--- Peter van de Hoef <pv...@springsite.com> a écrit :
>>>
>>>
>>>
>>>>Hi
>>>>
>>>>I'm trying to use the alias feature in plugin parameter definitions:
>>>>The syntax I'm using is:
>>>>
>>>>/**
>>>> * @parameter alias="bar"
>>>> */
>>>>private String foo;
>>>>
>>>>Then:
>>>>
>>>><configuration>
>>>>    <foo>maven</foo>
>>>></configuration>
>>>>
>>>>does work, but:
>>>>
>>>><configuration>
>>>>    <bar>maven</bar
>>>></configuration>
>>>>
>>>>does not.
>>>>
>>>>What am I doing wrong?
>>>>Thanks in advance,
>>>>Peter van de Hoef
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>___________________________________________________________________________
>>>Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
>>>Téléchargez cette version sur http://fr.messenger.yahoo.com
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to use the '@parameter alias'?

Posted by Brett Porter <br...@gmail.com>.
It seems it could be a bug. Would you mind putting it into JIRA?

- Brett

On 7/27/05, Peter van de Hoef <pv...@springsite.com> wrote:
> Yes that's a typo, I wrote this simplified sample out of my head to illustrate the problem. In the 'real' case the xml
> is valid. Thanks anyway.
> 
> Yann Le Du wrote:
> > Hi Peter,
> >
> > Are you missing a '>' in your closing bar tag or is it a copy/paste typo ?
> >
> > Yann
> >
> >
> > --- Peter van de Hoef <pv...@springsite.com> a écrit :
> >
> >
> >>Hi
> >>
> >>I'm trying to use the alias feature in plugin parameter definitions:
> >>The syntax I'm using is:
> >>
> >>/**
> >>  * @parameter alias="bar"
> >>  */
> >>private String foo;
> >>
> >>Then:
> >>
> >><configuration>
> >>     <foo>maven</foo>
> >></configuration>
> >>
> >>does work, but:
> >>
> >><configuration>
> >>     <bar>maven</bar
> >></configuration>
> >>
> >>does not.
> >>
> >>What am I doing wrong?
> >>Thanks in advance,
> >>Peter van de Hoef
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> >
> > ___________________________________________________________________________
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez cette version sur http://fr.messenger.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to use the '@parameter alias'?

Posted by Peter van de Hoef <pv...@springsite.com>.
Yes that's a typo, I wrote this simplified sample out of my head to illustrate the problem. In the 'real' case the xml 
is valid. Thanks anyway.

Yann Le Du wrote:
> Hi Peter,
> 
> Are you missing a '>' in your closing bar tag or is it a copy/paste typo ?
> 
> Yann
> 
> 
> --- Peter van de Hoef <pv...@springsite.com> a écrit :
> 
> 
>>Hi
>>
>>I'm trying to use the alias feature in plugin parameter definitions:
>>The syntax I'm using is:
>>
>>/**
>>  * @parameter alias="bar"
>>  */
>>private String foo;
>>
>>Then:
>>
>><configuration>
>>     <foo>maven</foo>
>></configuration>
>>
>>does work, but:
>>
>><configuration>
>>     <bar>maven</bar
>></configuration>
>>
>>does not.
>>
>>What am I doing wrong?
>>Thanks in advance,
>>Peter van de Hoef
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> 
> 
> 	
> 		
> ___________________________________________________________________________ 
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How to use the '@parameter alias'?

Posted by Yann Le Du <le...@yahoo.com>.
Hi Peter,

Are you missing a '>' in your closing bar tag or is it a copy/paste typo ?

Yann


--- Peter van de Hoef <pv...@springsite.com> a écrit :

> Hi
> 
> I'm trying to use the alias feature in plugin parameter definitions:
> The syntax I'm using is:
> 
> /**
>   * @parameter alias="bar"
>   */
> private String foo;
> 
> Then:
> 
> <configuration>
>      <foo>maven</foo>
> </configuration>
> 
> does work, but:
> 
> <configuration>
>      <bar>maven</bar
> </configuration>
> 
> does not.
> 
> What am I doing wrong?
> Thanks in advance,
> Peter van de Hoef
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 



	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Accessing Environment Variables

Posted by Torsten Curdt <tc...@apache.org>.
> Hi,
>
> Seems like a trival problem, but can't find an answer to it on the  
> net. How do I access environment variables in a properties file  
> (not jelly file) in Maven 1.0.2?

AFAIK you cannot ...you would have to pass in the properties via -D

...but you do have access to system properties like ${user.name}

HTH
--
Torsten


Accessing Environment Variables

Posted by Michael Owen <mi...@hotmail.com>.
Hi,

Seems like a trival problem, but can't find an answer to it on the net. How 
do I access environment variables in a properties file (not jelly file) in 
Maven 1.0.2?

Thanks,

Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org