I've seen two approaches:
1) if you are starting the Mojo using a MavenSession, you can set the 
property defined in 
@parameter expression="${propertyName}" for that parameter.
2) If you are invoking the methods in the Mojo by yourself, then the 
parameters are probably private fields, and you can set them using 
reflexion: Field f = SomeMojo.class.getDeclaredField("parameter"); 
f.setAccessible(); f.set(instanceOfSomeMojo, value);


______________________________________
Diese E-Mail kann vertrauliche und geschuetzte Informationen enthalten. Wenn 
diese E-Mail nicht für Sie bestimmt ist, bitten wir Sie, uns unverzueglich zu 
informieren und sie zu loeschen. 

This e-mail message may contain information, which is confidential and 
protected. If you are not the intended recipient of this message, we ask you to 
inform us immediately and delete the message afterwards.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to