Good day to you, James,

Not sure how you're instantiating those classes. Anyway, try adding those
classes in your plugin's dependency ( see [1] ). And if you need the path to
those binaries, see Getting dependency artifact path of [2].

Cheers,
Franz

[1] http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
[2] http://docs.codehaus.org/display/MAVENUSER/


James Carman-3 wrote:
> 
> All,
> 
> I am developing a simple mojo which needs to access classes defined within
> the project in which it is used.  But, they don't seem to be visible.  I
> am
> writing a mojo that can execute a "loader" (loads data into our database)
> object.  It takes a parameter that tells which loader class to use. 
> Anyway,
> I now want to use that mojo within another project to run a loader defined
> within that project.  When I try to instantiate that class, it's not
> available.  Is there something special I need to do to tell Maven to
> include
> the current project's classpath in my mojo's environment?
> 
> James
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to