You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Fallows <jo...@gmail.com> on 2005/08/01 11:35:56 UTC
Re: [m2] plugin parameter value configuration for non primitive types?
On 7/25/05, Peter van de Hoef <pv...@springsite.com> wrote:
> I think the PlexusConfiguration type is also worth mentioning here.
> It enabled me to pass a piece of xml right through to the plugin:
>
> import org.codehaus.plexus.configuration.PlexusConfiguration;
> ...
> class MyMojo [etc..]
> {
> /**
> * @parameter
> */
> private PlexusConfiguration anything;
> }
>
> Then, in the pom:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> [etc...]
> <configuration>
> <anything>
> <can go="here"/>
> <nested>
> <elements and="attributes"/>
> </nested>
> </anything>
> </configuration>
> </plugin>
Thanks Peter, this is certainly very useful for passing XML fragments.
Kind Regards,
John Fallows.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org