Hello,

I'm working on a multi-module web project and I find myself in a situation 
where I need the web-app packaged as both a jar and a war.

My project consists of:
 * parent module
 * integration-tests module
 * web-app module

I'm trying to set it up so that when I run "mvn:install" (from the root pom) it 
will install the webapp into the local repo as a war, and then the integration 
test module can both use classes from the webapp for tests, and also use the 
war to actually start up a jetty (using cargo) for testing.

My problem is that I have the webapp packaged as a war but when I try to run 
any test the testing module it can't find definitions for any of the classes in 
the webapp. In my testing pom.xml I have:

                <dependency>
                  <groupId>com.mycompany.app</groupId>
                  <artifactId>web-app</artifactId>
                  <version>1.0-SNAPSHOT</version>
                  <type>war</type>
                  <scope>runtime</scope>
                </dependency>

Am I setting this up correctly?

- Mike 

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

Reply via email to