hi all, I've searched, but can't see a suitable answer. apols if I've missed one.
I have a project which has two modules which compile with war packaging, and I need to perform integration testing using both these wars. the project contains a web service and WS client on both sides, I need to functionally test this, deploying the wars using the Cargo plugin. so I have created a functional-testing module, which contains the tests, but the tests have dependencies on classes in the other modules. I have listed the modules as dependencies of the funtional test pom, but the compile phase fails, as it can't see these classes. if I rig the build to compile the modules as jars instead, the compilation succeeds (but obviously the tests can't run, as I need wars to be deployed). I've checked that the first module is compiling to a war, with the right names and version numbers, etc, and that the classes needed are contained in WEB-INF/classes. I've seen the maven-dependency-plugin mentioned as a solution to this, not how to do this. what goal would do what I need? Would it be better to leave the test classes in the modules that compile to wars, exclude them from that module's surfire configuration, and have the functional test module contain no code itself, but just call these test classes? and would this work, or would they also not be able to see the test classes? any help would be much appreciated. snippet of the start of one of the modules which compiles to a war: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.blah.blah</groupId> <artifactId>blahWar</artifactId> <version>1.0.1-Continuous</version> <packaging>war</packaging> and the functional test pom: <modelVersion>4.0.0</modelVersion> <artifactId>functional-tests</artifactId> <packaging>pom</packaging> <name>functional tests</name> ... <dependencies> ... <dependency> <groupId>org.blah.blah</groupId> <artifactId>blahWar</artifactId> <version>1.0.1-Continuous</version> <type>war</type> </dependency> </dependencies> -- View this message in context: http://www.nabble.com/war-dependency-not-being-picked-up--tp21414576p21414576.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
