The clover and cobertura plugins add a dependency programmatically to a
project.  Check out their source. 

-----Original Message-----
From: Wendell Beckwith [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 10, 2006 6:23 PM
To: [email protected]
Subject: Is it possible for a mojo to dynamically add a jar resource?

I have a mojo that computes the jars needed for an osgi bunlde and I
need to
add the list of jars to the project so that they will be available for
the
compile phase.  Is there a plugin doing this or some documentaion on
pulling
this off?  The jars can't be added to the pom because it is not known
until
the Manifest.mf file is analyzed and a directory of jars is consulted,
as to
which jars actually contain the java packages necessary for compilation
and
then those jars need to be added to the dependency list.  I see the
method
to add a compile source root, but no method for adding a compile jar
file.

Wb

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

Reply via email to