2009/1/16 Carlo Sciolla <[email protected]> > Something like this: > > <code> > // MyMojo.java > > /** > * The Maven project > * @parameter expression="${project}" > * @required > */ > private MavenProject project; > > [...] > > public void execute() > throws MojoExecutionException > { > [...] > project.getProperties().put("propertyAvailableHereafter", > actualValue); > [...] > } > } > </code> >
But note that this property will only be available to phases after your mojo has executed.... This can cause fun if you want to use the property value in the pom in an expression that is used when the initial model is being constructed (i.e. you cannot use the property in /project/artifactId, etc) > > > Hope this helps, > c. > > -- > Carlo Sciolla - http://www.skuro.tk > Software Engineer at Sourcesense - Making sense of open Source > (http://www.sourcesense.com) > Linux User #372086 > > \|/ > -(o< -- I'm a punk, dude! > //\ > V_/_ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
