You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by NGUYEN Cong Kinh <co...@it-sudparis.eu> on 2009/08/21 11:58:30 UTC
[mojo Maven-plugin] how to load generated classes in the process-classes
phase
Hello everybody,
I want to create a Maven plugin using AbstractMojo for the
process-classes phase. In my plugin, I want to call classes generated by
the compile phase. But, I don't know how to execute them. Could anyone
give me some suggestions?
Thanks in advance for any help!
Kinh
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [mojo Maven-plugin] how to load generated classes in the
process-classes phase
Posted by Martin Gainty <mg...@hotmail.com>.
did you try implementing the guidelines for writing your first mojo at
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
you mentioned calling classes you could build an archetype of your class e.g.
<myObject>
<myField>test</myField>
</myObject>
then include referenced myObject to your custom plugin with @parameter
/**
* My Object.
*
* @parameter
*/
private MyObject myObject;
Bon Chance,
Martin Gainty
______________________________________________
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Fri, 21 Aug 2009 11:58:30 +0200
> From: cong_kinh.nguyen@it-sudparis.eu
> To: users@maven.apache.org; user@mojo.codehaus.org
> Subject: [mojo Maven-plugin] how to load generated classes in the process-classes phase
>
> Hello everybody,
>
> I want to create a Maven plugin using AbstractMojo for the
> process-classes phase. In my plugin, I want to call classes generated by
> the compile phase. But, I don't know how to execute them. Could anyone
> give me some suggestions?
>
> Thanks in advance for any help!
>
> Kinh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009