On Tue, Dec 1, 2009 at 8:10 AM, laredotornado <[email protected]> wrote:

> I'm using Maven 2.2.  I think I read somewhere that you cannot have a WAR as
> a dependency because maven doesn't know how to read the WEB-INF/classes
> directory.

This isn't Maven related, it's a Java thing.  Try compiling code at
the command line with a war on the classpath -- it won't work.

If something else depends on the classes in your war, then those
classes probably deserve to be in a separate module which creates a
jar.  Then both your war and the other project can depend on this jar.

You might also be interested in the 'archiveClasses' parameter of the
war plugin, which will make it create a jar instead of using
WEB-INF/classes.
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to