Hi, Wurzelseppi wrote at Donnerstag, 26. November 2009 08:45:
> > Hi All, > > i trying to develop an maven plugin and have problems at a certain point. > > My Mojo has to call an other mojo and needs to pass required parameters > which i´m defining in my own plugins configuration section. The question > is: how do i do that ? > somehow i can´t get a handle to the configuration paramters of my mojo > other than the directly injected ones. > Is there a way to get a map or something like that of the parameters and > pass them to the other mojo ? In short: Don't do it, it is not supported by the Maven classloader. Long version: Maven loads every plugin/Mojo only once either because it is used in the POM by the user or because some malicious plugin loads it as dependency. Now, if the user and the malicious plugin do not agree over the plugin's version and the plugin versions are no longer compatible, the build simply breaks. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
