You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Adam Lewis <su...@gmail.com> on 2006/11/07 18:23:51 UTC

MOJO Paramater Question

My understanding of mojo parameters is that when declaring paramters
for a mojo, the
@parameter expression="${...}" syntax allows access to various
properties that already exist in the environment.  Is there a unfied
list of what can be put there floating around out there?  Is there a
good way of finding out what objects have been put into the
environment at any given point?  I'm sorry if this is a question with
an obvious answer, but I can't figure out what it is maven puts there
from the pom, etc..


Thanks,
Adam

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


Re: MOJO Paramater Question

Posted by Matt Campbell <ma...@gmail.com>.
The @parameter  refers to the pom configuration or system properties

so if you had @parameter expression="${project.build.resources}"  the could
either mean your looking for a system property named "
project.build.resources"  or your looking for the resources listed in the
pom, which would be defined like this:

<project>
    <build>
        <resources>
            <resource>src/main/resources</resource>
        </resources>
    </build>
</project>

A good reference for the pom structure is
http://www.javaworld.com/javaworld/jw-05-2006/jw-0529-maven.html?page=1

Hope that helps.

On 11/7/06, Adam Lewis <su...@gmail.com> wrote:
>
> My understanding of mojo parameters is that when declaring paramters
> for a mojo, the
> @parameter expression="${...}" syntax allows access to various
> properties that already exist in the environment.  Is there a unfied
> list of what can be put there floating around out there?  Is there a
> good way of finding out what objects have been put into the
> environment at any given point?  I'm sorry if this is a question with
> an obvious answer, but I can't figure out what it is maven puts there
> from the pom, etc..
>
>
> Thanks,
> Adam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>