RE: configuration mappings for complex objects

2006-04-04 Thread Christophe Grosjean








Hi,

 

Unfortunately, I’ve received no
answer so far… (see my original mail below).

 

In ‘Creating artifact form
Dependencies’ and its replies, Hermod and  Brett talked about a mojo.xxx.xml
file (never read about it in Maven doc) and some

 tag.
Should this way be followed ?

 

Can anyone point me to a link a some Maven
documentation stressing that point ? 

Is there somewhere a documentation on developing
Maven 2 plugin more complete than the one on the Maven site ? (articles,…)

 

Thank you for your answer(s),

 

Christophe

 









From: Christophe Grosjean 
Sent: jeudi 30 mars 2006 17:38
To: dev@maven.apache.org
Subject: configuration mappings
for complex objects



 

Hi,

 

A question  about the configuration mappings…
Does the mapping of Maven project properties to Mojo fields also

work for any complex objects used to configure the plugin?

 

In other words, in the following code, will the
‘project’ field of the ComplexObject parameter be assigned ?

 

 

 

public class SomeMojo extends AbstractMojo {

 

  /**

  * @parameter

  */

  private ComplexObject
complexObject;

 

}

 

public class ComplexObject {

 

  /**

 * The maven project.

*

* @parameter
_expression_="${project}"

* @required

* @readonly

*/

      private MavenProject
project;

 

}

 

Thanks for your answer,

 

Christophe

 

 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

configuration mappings for complex objects

2006-03-30 Thread Christophe Grosjean








Hi,

 

A question  about the configuration mappings… Does the
mapping of Maven project properties to Mojo fields also

work for any complex objects used to configure the plugin?

 

In other words, in the following code, will the ‘project’
field of the ComplexObject parameter be assigned ?

 

 

 

public class SomeMojo extends AbstractMojo {

 

  /**

  * @parameter

  */

  private ComplexObject complexObject;

 

}

 

public class ComplexObject {

 

  /**

  * The maven project.

*

* @parameter
_expression_="${project}"

* @required

* @readonly

*/

      private MavenProject project;

 

}

 

Thanks for your answer,

 

Christophe

 

 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]