maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Fallows <john.r.fall...@gmail.com>
Subject Re: [m2] plugin parameter value configuration for non primitive types?
Date Mon, 01 Aug 2005 09:35:56 GMT
On 7/25/05, Peter van de Hoef <pvdhoef@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


Mime
View raw message