Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-91

Dependency as type=test-jar and scope=compile not included in WEB-INF/lib on packaging.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.1-alpha-1
    • None
    • None
    • Mac OSX. Maven 2.0.4

    Description

      I have a dependency defined below:

      <dependency>
      <groupId>com.foo.ejb.server</groupId>
      <artifactId>slm-ejb-server</artifactId>
      <type>test-jar</type>
      <scope>compile</scope>
      </dependency>

      I would expect it in the WEB-INF/lib directory at time of packaging. Interestingly enough its transitive dependencies show up but not the actual test jar. The reason we need it in the WAR is for Cactus tests. I agree Cactus is evil but can not remove it in the short term.

      Attachments

        1. MWAR-91-test.tar
          30 kB
          Piotr Tabor
        2. MWAR-91-maven-war-plugin.patch
          0.8 kB
          Piotr Tabor

        Activity

          People

            snicoll Stephane Nicoll
            fgarsombke Franz Garsombke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: