Re: Plexus classloader

2008-03-10 Thread Rahul Thakur
You could also use Eclipse's ASTParser to scan sources for annotations. Rahul Jason van Zyl wrote: On 25-Feb-08, at 2:21 AM, Bengali Bengali 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. QDo

Re: Plexus classloader

2008-02-25 Thread Jason van Zyl
On 25-Feb-08, at 2:21 AM, Bengali Bengali 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. QDox is awesome. It's what we use actually. I decided to compile classes -> then run my maven plugin t

Re: Plexus classloader

2008-02-25 Thread Bengali Bengali
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 libra

Re: Plexus classloader

2008-02-25 Thread Tomasz Pik
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 > annotati

Re: Plexus classloader

2008-02-25 Thread Bengali Bengali
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. I have been able to do it instantiating my own classloader (adding it target/classe

Re: Plexus classloader

2008-02-22 Thread Jason van Zyl
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

Re: Plexus classloader

2008-02-22 Thread Bengali Bengali
Thanks for the information, but jetty plugin does not use plexus. I thought of using plexus to execute some class scanning (with compiled classes) in its own classloader. Luc On Fri, Feb 22, 2008 at 9:47 PM, Jason van Zyl <[EMAIL PROTECTED]> wrote: > Look at the Jetty plugin as it has exactly w

Re: Plexus classloader

2008-02-22 Thread Jason van Zyl
Look at the Jetty plugin as it has exactly what you need. On 22-Feb-08, at 12:42 PM, Bengali Bengali wrote: Hi, I am writing my first Maven plugin and i need to load, at package phase, some compiled classes. I was wondering if it was possible to configure plexus's classloader with the follo

Plexus classloader

2008-02-22 Thread Bengali Bengali
Hi, I am writing my first Maven plugin and i need to load, at package phase, some compiled classes. I was wondering if it was possible to configure plexus's classloader with the following ressources: - ${project.build.dir}/classes to be able to load some compiled classes. - all the runtime depend

Re: plexus classloader issue ?

2007-10-18 Thread nicolas de loof
until it was needed, so chicken or egg. > > -Original Message- > From: nicolas de loof [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 18, 2007 10:54 AM > To: Maven Developers List > Subject: Re: plexus classloader issue ? > > Right, > > I've

RE: plexus classloader issue ?

2007-10-18 Thread Brian E. Fox
rsday, October 18, 2007 10:54 AM To: Maven Developers List Subject: Re: plexus classloader issue ? Right, I've bundled my extensions in a jar that only contains a plexus component.xml for custom lifecycle and handlers. I have to set my extension as both and : > > You definitely want yo

Re: plexus classloader issue ?

2007-10-18 Thread nicolas de loof
to:[EMAIL PROTECTED] > Sent: Thursday, October 18, 2007 4:41 AM > To: Maven Developers List > Subject: Re: plexus classloader issue ? > > My extension also defines maven extensions (custom lifecycle and > ArtifactHandler) > I'll have to split it into extension and commo

RE: plexus classloader issue ?

2007-10-18 Thread Brian E. Fox
dency, other bad things can happen. -Original Message- From: nicolas de loof [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 4:41 AM To: Maven Developers List Subject: Re: plexus classloader issue ? My extension also defines maven extensions (custom lifecycle and ArtifactHandler)

Re: plexus classloader issue ?

2007-10-18 Thread nicolas de loof
My extension also defines maven extensions (custom lifecycle and ArtifactHandler) I'll have to split it into extension and common-tools, so that common-tools can be shared as a dependency. 2007/10/18, Tim Kettler <[EMAIL PROTECTED]>: > > Hi, > > nicolas de loof schrieb: > > My first plugin defines

Re: plexus classloader issue ?

2007-10-18 Thread Tim Kettler
Hi, nicolas de loof schrieb: > My first plugin defines some custom components, shored with other plugins. > It is used from other projects as a maven extension. > > My second plugin uses this component > > My main project uses the 2d plugin and has the 1rst one set as extension. > The second plu

Re: plexus classloader issue ?

2007-10-17 Thread nicolas de loof
> This worked as expected when the unarchiver was defined in the > > > plugin that > > > uses the archiver, but not if the unarchiver is defined bu another > > > plugin. I > > > supose those plugins have separate classloaders. > > > > > > Any workaround ? >

Re: plexus classloader issue ?

2007-10-17 Thread nicolas de loof
ate classloaders. > > > > Any workaround ? > > > > > > 2007/10/17, Brian E. Fox <[EMAIL PROTECTED]>: > >> > >> Take a look at the dependency plugin for use of the unarchiver. > >> > >> -Original Message- > >> From: nic

Re: plexus classloader issue ?

2007-10-17 Thread Andrew Williams
ian E. Fox <[EMAIL PROTECTED]>: Take a look at the dependency plugin for use of the unarchiver. -Original Message- From: nicolas de loof [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 10:33 AM To: Maven Developers List Subject: plexus classloader issue ? Hello, I've

Re: plexus classloader issue ?

2007-10-17 Thread nicolas de loof
e loof [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 10:33 AM > To: Maven Developers List > Subject: plexus classloader issue ? > > Hello, > > I've created a plugin that requires a plexus UnArchiver as @component. > The expected Unarchiver is declared by

RE: plexus classloader issue ?

2007-10-17 Thread Brian E. Fox
Take a look at the dependency plugin for use of the unarchiver. -Original Message- From: nicolas de loof [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 10:33 AM To: Maven Developers List Subject: plexus classloader issue ? Hello, I've created a plugin that requi

plexus classloader issue ?

2007-10-17 Thread nicolas de loof
Hello, I've created a plugin that requires a plexus UnArchiver as @component. The expected Unarchiver is declared by another plugin, configured as an extensions. All works fine when unit-testing the plugin using maven-test-harness, but when I try to use it from another project (it test) I get thi