How can then add them to plugin class path?
On Apr 28, 2013 5:06 PM, "Thomas Broyer" <[email protected]> wrote:
> All you need is a reference to the MavenProject:
>
> @Parameter(defaultValue = "${project}", required = true, readonly =
> true)
> private MavenProject project;
>
> then you can use getClasspathElements(), getDependencyArtifacts(), etc.
>
> Of course you can also have those parts injected directly, for example:
>
> @Parameter(defaultValue = "${project.dependencyArtifacts}",
> required = true, readonly = true)
> private Set<Artifact> dependencyArtifacts;
>
>
> On Sun, Apr 28, 2013 at 10:28 AM, Mohammad Shamsi <[email protected]>
> wrote:
> > Hi All,
> >
> > I'm developing a maven plugin and I need to access to the classpath of
> > project that is using my plugin, including main classes, test classes and
> > dependencies.
> >
> > To me it seems a very common scenario, but I couldn't find any solution
> for
> > it in maven docs and other forums.
> >
> > Thank you.
> > Mohammad Shamsi
>
>
>
> --
> Thomas Broyer
> /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>