You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Ersoy <ol...@gmail.com> on 2007/03/18 06:21:36 UTC

Injecting the ArtifactId and groupId

Hi,

I'm trying to inject the artifactId and groupId.

Maybe I should just go to bed and wake up fresh, but I'm pretty sure 
this is the correct way:

    /*
     * @parameter expression="${project.artifactId}"
     */
    private String artifactId;

    /*
     * @parameter expression="${project.groupId}"
     */
    private String groupId;
   

    public void execute()
        throws MojoExecutionException
    {
        getLog().info( 
"============================================================\n");
        getLog().info( artifactId );
        getLog().info( groupId );
        getLog().info( 
"============================================================\n");
       

When I run the mojo, I get nothing logged for hte artifactId and groupId.

Any ideas?

Thanks,
- Ole



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