Adding a war to classpath anyone ?

Hi, 

I have an automation project which requires certain calasses from one of the project wars.

 

If all fails I know I could:

  1. produce a jar from the same project ... 
  2. 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.

Thanks

Thank you for your interest!

We will contact you as soon as possible.

Want to Know More?

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com
Thank you for your interest!

We will contact you as soon as possible.

Let's talk

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com