Ok thanks that's exactly what i wanted. On Mon, Feb 25, 2008 at 11:26 AM, Tomasz Pik <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 25, 2008 at 11:21 AM, Bengali Bengali <[EMAIL PROTECTED]> > wrote: > > I need to find annotated classes and generate an XML file. > > Since i haven't found any good library to scan source files for > annotations. > > > > I decided to compile classes -> then run my maven plugin to find > > annotations. > > What about this one: > > http://myfaces.apache.org/tobago/tobago-tool/maven-apt-plugin/introduction.html > > Regards, > Tomek > > > > > I have been able to do it instantiating my own classloader (adding it > > target/classes directory) > > and running my class scanner to detect annotations. It works now but i > have > > to perform some reflection to instantiate my scanner in its own > classloader. > > I thought of using my class scanner directly in my maven plugin and run > the > > plugin in a URLClassLoader that has already the classes/target url in > it. > > > > Hope i have been clear enough. > > > > Thanks > > Luc > > > > On Sat, Feb 23, 2008 at 1:59 AM, Jason van Zyl <[EMAIL PROTECTED]> wrote: > > > > > It has the code for populating a classloader, and anything in Maven > > > uses plexus. If you're writing a Maven plugin it uses plexus. > > > > > > What exactly are you trying to do aside from populating a classloader > > > with the classes and dependencies of the current project? > > > On 22-Feb-08, at 1:55 PM, Bengali Bengali wrote: > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
