You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ludwig Magnusson <lu...@itcatapult.com> on 2010/04/21 14:45:51 UTC

Reference to available data for mojos?

Hi!

When writing a mojo there is a possibility to access information about the
project running the mojo. E.g. one can access the version like this:



    /**

     * @parameter default-value="${project.version}"

     * @required

     * @readonly

     */

    private String version;

 

Is there a reference somewhere that lists the different attributes available
and in what kind of object that will be representing them (String, Int, File
etc)?

/Ludwig


RE: Reference to available data for mojos?

Posted by Ludwig Magnusson <lu...@itcatapult.com>.
Thanks =)

-----Original Message-----
From: Justin Edelson [mailto:justinedelson@gmail.com] 
Sent: den 21 april 2010 15:18
To: Maven Developers List
Subject: Re: Reference to available data for mojos?

You can look at the JavaDoc of the MavenProject class:
http://maven.apache.org/ref/2.2.1/maven-project/apidocs/org/apache/maven/pro
ject/MavenProject.html

On 4/21/10 8:45 AM, Ludwig Magnusson wrote:
> Hi!
> 
> When writing a mojo there is a possibility to access information about the
> project running the mojo. E.g. one can access the version like this:
> 
> 
> 
>     /**
> 
>      * @parameter default-value="${project.version}"
> 
>      * @required
> 
>      * @readonly
> 
>      */
> 
>     private String version;
> 
>  
> 
> Is there a reference somewhere that lists the different attributes
available
> and in what kind of object that will be representing them (String, Int,
File
> etc)?
> 
> /Ludwig
> 
> 


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


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


Re: Reference to available data for mojos?

Posted by Justin Edelson <ju...@gmail.com>.
You can look at the JavaDoc of the MavenProject class:
http://maven.apache.org/ref/2.2.1/maven-project/apidocs/org/apache/maven/project/MavenProject.html

On 4/21/10 8:45 AM, Ludwig Magnusson wrote:
> Hi!
> 
> When writing a mojo there is a possibility to access information about the
> project running the mojo. E.g. one can access the version like this:
> 
> 
> 
>     /**
> 
>      * @parameter default-value="${project.version}"
> 
>      * @required
> 
>      * @readonly
> 
>      */
> 
>     private String version;
> 
>  
> 
> Is there a reference somewhere that lists the different attributes available
> and in what kind of object that will be representing them (String, Int, File
> etc)?
> 
> /Ludwig
> 
> 


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