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]

Reply via email to