Tony, the simplest way of doing is to use Arrays. If you must use List, then look at the Mojo documentation as there are some limitations: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Complex_Objects
Regards Jeff MAURY On Thu, Jun 30, 2011 at 9:48 AM, DE GOEDE Tony < tony.dego...@nl.thalesgroup.com> wrote: > Hello,**** > > ** ** > > I have a problem.**** > > ** ** > > I am building a new maven plugin to interface with a local build tool.**** > > To control the plugin I supply some configuration data. For simple elements > this works using annotations.**** > > Because we want to configure maven to get the correct target artifacts from > nexus for the current platform, we need more complex type of configuration > data. Example:**** > > ** ** > > <configuration>**** > > <platform_mapping>**** > > <platform>**** > > <host>linux64</host>**** > > <targets>**** > > <target>targetX</target>**** > > <target>targetY</target>**** > > </targets>**** > > </platform>**** > > ** ** > > <platform>**** > > <host>linux</host>**** > > <targets>**** > > <target>targetZ</target>**** > > </targets>**** > > </platform>**** > > </platform_mapping>**** > > etc**** > > ** ** > > How do I annotate this list in my plugin.**** > > There is no example on the maven website for a list of complex data types. > **** > > ** ** > > Does anybody knows how to implement this, have an alternative or maybe have > an example of how to do it.**** > > I am very unfamiliar in programming plugins and in using java.**** > > ** ** > > Thanks in advance.**** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > [image: Description: Thales Nederland]**** > > *Tony de Goede***** > > Software Engineer**** > > Sensors**** > > ** ** > > > Phone:**** > > > +31 (0)74 248 4599**** > > Mobile:**** > > +31 (0)6 4405 7890**** > > E-mail:**** > > tony.dego...@nl.thalesgroup.com**** > > ** ** > > > *THALES NEDERLAND***** > > Haaksbergerstraat 49**** > > 7554 PA Hengelo**** > > > PO Box 42**** > > 7550 GD Hengelo**** > > The Netherlands**** > > www.thalesgroup.com/nl**** > > ** ** > > ** ** > > ------------------------------------------------------------------------------------------------------------ > Disclaimer: > > If you are not the intended recipient of this email, please notify the sender > and delete it. > Any unauthorized copying, disclosure or distribution of this email or its > attachment(s) is forbidden. > Thales Nederland BV will not accept liability for any damage caused by this > email or its attachment(s). > Thales Nederland BV is seated in Hengelo and is registered at the Chamber of > Commerce under number 06061578. > ------------------------------------------------------------------------------------------------------------ > > > -- "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury