Uploaded image for project: 'Maven EAR Plugin'
  1. Maven EAR Plugin
  2. MEAR-14

Transitive dependencies of War modules should not be copied in the Ear by default

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • Win2k, Java 1.4.2, Maven 2.0 beta 1

    Description

      Currently, when an Ear is generated, every transitive dependency of its War modules is copied into the Ear, which makes them exist twice in the pacakge (one in the War and once in the Ear).
      There's an 'excluded' property to prevent transitive dependencies of a War to be copied in the Ear, but this is painful because a War module usually have lots of dependencies.

      So I would say that the packaging for an Ear should be more complex concerning the dependencies declared in its pom:

      • for a Jar or an Ejb, then I agree that the transitive dependencies must be included in the Ear
      • for a War, the default behaviour should be to include only the War itself, without all its transitive dependencies. There could be a property 'included' to tell the packager to take a specific dependency of the War and put it up in the Ear. (this would be the opposite behaviour as currently with the 'excluded' property)

      Attachments

        Issue Links

        Activity

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

          People

            brett Brett Porter
            fabemn Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment