« Return to Thread: Setting classloader for extra dependencies

Re: Setting classloader for extra dependencies

by Matt Wringe :: Rate this Message:

Reply to Author | View in Thread

On Thu, 2009-02-05 at 15:43 +0100, Alexander Brill wrote:
> Hi,
>
> With the <dependencies> tag you can add extra dependencies to the
> container execution classpath. As I am running Tomcat I'd rather have
> these extra dependencies get copied into either my common/lib or
> server/lib directory.

there is the concept of a "sharedclasspath" option that does this, it
currenly only works with ant right now (it shouldn't be too much of a
problem to get the maven extension working with it). And it isn't
documented. It works similar to the extraclasspath option
(http://cargo.codehaus.org/Container+Classpath).

> I figured this isn't implemented yet, however I have a bit of time to
> look into it. But... What would be the best approach to get this as
> generic as possible from the configuration perspective? One possible
> solution that comes to mind is:
>
> <dependencies>
>   <dependency>
>     <groupId>foo</groupId>
>     <artifactId>bar</artifactId>
>     <output>jvm | common | server</output>
>   </dependency>
> </dependencies>
>
> Comments?
>
> --
> Alexander Brill
> http://brill.no


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Setting classloader for extra dependencies