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.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment