Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-167

.component assumes all dependencies should be packaged in WAR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • None
    • None
    • WTP support
    • None

    Description

      Our applications are packaged such that the JAR dependencies are packaged within the EAR, not the WARs. The dependencies are listed in the WAR in order to generate the MANIFEST.MF class-path entries, and to add compile dependencies to the .classpath. These dependencies are excluded from the packaged WAR, however, via the maven-war-plugin's warSourceExcludes configuration: <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes> since they reference the EAR. [Related: MWAR-9]

      The Eclipse Plugin WTP configuration file generation currently assumes that all WAR project dependencies should be packaged and deployed in the WAR. Each dependency is listed as a "dependent-module" with a deploy-path of "/WEB-INF/lib" in the .component file.

      This causes the dependencies to be duplicated and packaged in the EAR and in every WAR when the project is published to an app server.

      The eclipse-plugin should expose additional WTP configuration or read the war-plugin's configuration in order to exclude these dependencies from being packaged and deployed within the WAR.

      Attachments

        1. MECLIPSE-167.zip
          4 kB
        2. MECLIPSE-167.patch
          7 kB
          David Ledanseur

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              shelley Shelley
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: