OK. good idea. now another silly question:

If i will install succesfully the new plugin into local m2 repository. How can 
I test (run ) it ...to generate that some output on my project? just add the 
plugin into <build> part?

thanks
D.

> ------------ Původní zpráva ------------
> Od: Aliaksei Lahachou <aliaksei.lahac...@gmail.com>
> Předmět: Re: How write maven plugin to read *.java (all sources) and generate
> some output?
> Datum: 25.7.2012 15:16:35
> ----------------------------------------
> I'd suggest to find an existing plugin the does something similar and use
> its source as a reference.
>
> [1] http://maven.apache.org/plugins/index.html
> [2] http://mojo.codehaus.org/plugins.html
>
>
> Regards,
> htfv (Aliaksei Lahachou)
>
>
> On Wed, Jul 25, 2012 at 3:03 PM, <e92-33...@seznam.cz> wrote:
>
> > Hello,
> > I am completely new in writing own maven plugins.. as I have read this
> > tutorial:
> > http://books.sonatype.com/books/mvnref-book/reference/writing-plugins.html
> >
> > there is only simple example. But no any further information how to
> > develop more complex plugin.
> >
> > All I want is create some maven plugin , that could be added to the
> > parrent pom that will read all source class, and than I will generate some
> > output into each project subfolder, where the sources are located.
> >
> > eg.When the maven will build some product, I would like to create new file
> > count.txt in every plugin folder, where will be couple rows:
> >
> > class1 - 223 lines
> > class2 - 10 lines ....
> >
> > and at the end my maven plugin will create one final file, where will be
> > sum of this small sub count files.txt
> >
> > any good advices?
> >
> > thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to