Something along these lines should do it...

import org.apache.maven.project.MavenProject;

   /**
    * The maven project.
    *
    * @parameter expression="${project}"
    * @required
    * @readonly
    */
   private MavenProject project;

public void execute() throws MojoExecutionException,
MojoFailureException
{
               project.getProperties().put("yourKey", "yourValue");
}

Wayne

On 8/13/07, Mykel Alvis <[EMAIL PROTECTED]> wrote:
> What's the mechanism for setting properties from inside a plugin?
> I have a plugin that collects some information about the local environment
> and I want to include those values in the manifest during packaging without
> building my own manifest file.
> Is this possible?
> Thanks,
> Myke
>

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

Reply via email to