You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rohnny Moland <rm...@gmail.com> on 2006/08/03 17:05:43 UTC

maven apt plugin

Hello,

I see on myfaces.apache.org there is a maven apt plugin - does this
actually work? And are there any examples out there on how to use it?
How do I pass in the classpath and how can the plugin know where the
processor factories are? And what is the groupId/artifactId of the plugin?


Thanks in advance,
Rohnny

Re: maven apt plugin

Posted by Rohnny Moland <rm...@gmail.com>.
Bernd Bohmann wrote:

>> I see on myfaces.apache.org there is a maven apt plugin - does this
>> actually work?
> 
> Yes,
> the plugin based on the work from Juraj Burian
> see:
> http://jira.codehaus.org/browse/MNG-1672

Thanks for your reply, Bernd. The tobago apt plugin works great, but as
Juraj Burian writes in the jira, it is a issue that processors needs to
be added as a project dependency. I would like to modify the plugin so
that processors only needs to be added as dependencies to the plugin. So
when you define the plugin for use in pom.xml you only need to add the
processors you are using to the dependencies tag inside the plugin tag..
 I have not figured out how I can do this yet, any hints are welcome. :)
I would guess it is an easy way to retrive all the dependencies from a
plugin.


> beehive has also a maven-apt-plugin
> 
> http://svn.apache.org/repos/asf/beehive/sandbox/maven2/maven-apt-compiler/

I wasnt aware of that, thanks. I'll take a look at that one too.

Regards,
Rohnny

Re: maven apt plugin

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Rohnny,

Rohnny Moland schrieb:
> Hello,
> 
> I see on myfaces.apache.org there is a maven apt plugin - does this
> actually work?

Yes,
the plugin based on the work from Juraj Burian
see:
http://jira.codehaus.org/browse/MNG-1672

beehive has also a maven-apt-plugin

http://svn.apache.org/repos/asf/beehive/sandbox/maven2/maven-apt-compiler/

> And are there any examples out there on how to use it?

Please look at the pom.xml in
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/core
or
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/contrib/facelets/

You can find some little documentation at:

http://myfaces.apache.org/tobago/tobago-tool/maven-apt-plugin/howto.html

> How do I pass in the classpath and how can the plugin know where the
> processor factories are?

the processor is included as a provided dependency in the dependency 
section and the factory is a configuration option.

> And what is the groupId/artifactId of the plugin?

<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>maven-apt-plugin</artifactId>

> 
> 
> Thanks in advance,
> Rohnny
> 

Regards

Bernd

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333