have you tried to create a pojo called Person (with getters + setters for
firstName and lastName) in the same package as the mojo?
did you add something like this to the mojo
/**
* @parameter
*/
private Person person;
-Robert
On Fri, 13 Jan 2012 11:53:53 +0100, Maxime Carpentier
<[email protected]> wrote:
Hi,
I'm developping a new plugin using ant, guided by
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html.
In this tutorial you can see how to map parameter for your plugin,
declaring in your pom.xml :
<plugin>
<groupId>org.myproject.plugins</groupId>
<artifactId>hello-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<name>John</name>
</configuration>
</plugin>
and in your xml mojo :
<parameter>
<name>name</name>
<property>name</property>
<required>true</required>
<type>java.lang.String</type>
...
</parameter>
but what i actually want to do is using complex objects, as described
here
:
http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Complex_Objects
<configuration>
<person>
<firstName>Jason</firstName>
<lastName>van Zyl</lastName>
</person>
</configuration>
I've tried several possible configurations but no success...any idea
on how to do it ?
Thanxs,
Max
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]