Put "@requiresDependencyResolution test" in your mojo declaration.

-----Original Message-----
From: Zak Jacobson [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 11, 2007 12:48 AM
To: dev@maven.apache.org
Subject: Project artifacts w/ scope == test

Hi -

I'm writing a plugin that executes a java app.  It builds the classpath
for
the external app based on the dependencies specified in the pom.  I'm
having
trouble building the classpath if dependencies have a scope of test
because
the artifact is not in the list of artifacts.  It appears the test
scoped
artifacts are not available in project.getArtifacts() or
project.getTestArtifacts().

The plugin's execution specifies the test phase.  Is there a way to get
the
test scoped dependencies?  The plugin also runs during the
process-classes
phase and I don't want the test scoped dependncies in that case. Is
there a
better or easier way to get the classpath needed for a project to be
tested?  The surefire plugin is getting it, but I can't see how (yet, I
just
started looking at that code).

Thanks-
Zak

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to