Adding a war to classpath anyone ?
I have an automation project which requires certain calasses from one of the project wars.
If all fails I know I could:
- produce a jar from the same project ...
- unpack dependecies and appent to classpath
Our automation team have been trying to add the war as a dependency and expected it to be appended to the classpath, but really what is needed is the WEB-INF/classes directory.
I've tried "playing" with the "maven-warpath-plugin" with no luck see usage @: http://static.appfuse.org/maven-warpath-plugin/usage.html
Addin this to the project pom:
<build> <plugins> <plugin> <groupId>org.appfuse</groupId> <artifactId>maven-warpath-plugin</artifactId> <version>2.1.0</version> <extensions>true</extensions> <executions> <execution> <goals> <goal>add-classes</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
And the required dependecies yield nothing but exceptions:
<dependency> <groupId>my.org</groupId> <artifactId>myrequired.war</artifactId> <version>1.0-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>my.org</groupId> <artifactId>myrequired.war</artifactId> <version>1.0-SNAPSHOT</version> <type>warpath</type> </dependency>
Any ideas / suggestions are welcome.
We will contact you as soon as possible.