Thanks for the tip Brian. You lead be on a path to find the answer,
which was not obvious to me before I dove into the dependency-plugin
code. I couldn't understand why I always got 0 artifacts back from
project.getArtifacts(). Finally I found the answer:
@requiresDependencyResolution compile
Brian E. Fox wrote:
You can use the artifact filters in maven-common-artifact-filters...this
has the code that I use in the dependency plugin. It calls through to
the same code the core is using, but lets you filter the entire list in
one shot.
-----Original Message-----
From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 02, 2008 9:03 PM
To: [email protected]
Subject: How to get the compile class path for a project?
I'm trying to solve http://jira.codehaus.org/browse/MCHECKSTYLE-54
Do do this I need to get the compile class path for a MavenProject. How
do I go about doing that?
The plugin currently calls
project.getCompileClasspathElements()
which is not returning what I want.
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]