Thanks for the quick response,

This is what I have on my mojo:

 *
 * @goal model-to-files
 *
 * @phase compile
 *
 * @requiresDependencyResolution compile

I tried all compile/runtime but I can't still load classes by their names.

Any hints?

Do I need to look up on some special class loader within maven built-in
libraries?

Regards,

Joao

On Sat, Dec 20, 2008 at 7:26 AM, Barrie Treloar <[email protected]> wrote:

> On Sat, Dec 20, 2008 at 4:39 PM, João Kreuzberg <[email protected]>
> wrote:
> > Hello Guys,
> >
> > I have a maven plugin that needs to load classes from the project, but
> when
> > I try I get class not found exception, so
> > I'm guessing I need to configure something to let maven know that the
> > application class path should also include the existing java classes.
> >
> > This plugin will via reflection will extract some metadata via reflection
> > from these classes to generate a couple of XML files.
> >
> > How can configure my mojo to include the classes from src/main/java (the
> > actual compiled ones in target/classes/... )?
>
> Have you added @requiresDependencyResolution as per
> http://maven.apache.org/developers/mojo-api-specification.html?
> I think that gives you access to the scope you want (maybe compile?)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Ivanir João Kreuzberg

Reply via email to