Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.7
    • Labels:
      None
    • Environment:
      mvn 2.0.5

      Description

      Provide a boolean configuration option for webModules to include the war's transitive dependencies.

      As described on http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html it is very common in a J2EE environment to use so called skinny wars. Here the war's WEB-INF/lib will not contain the dependent jars, but instead they are packaged inside the EAR. The war references them through its META-INF/MANIFEST.MF

      This option could be used to avoid the 'painful part' mentioned in the above web page. The war's dependencies wouldn't have to be duplicated alongside the ear's.

      I also found an old issue (MEAR-14) which has asked for the current default behavior of not including the transitive dependencies. It suggests a property to include specific dependencies of the war. As far as I can tell this has never been implemented and this is also not what I am asking for. My proposal is an all of nothing kind of option for each war module in the ear.

      On a side note, for me this is the part where removal of the old maven 1 style properties per dependency is missed the most. With them it was possible to decide for each single dependency whether to put it in WEB-INF/lib or reference it through the manifest classpath. But of course, then we didn't have the transitive dependencies

      1. maven-ear-plugin-addon-1.0-SNAPSHOT.jar
        3 kB
        Andreas Thaler
      2. maven-ear-plugin-addon-1.0-SNAPSHOT-sources.jar
        1 kB
        Andreas Thaler
      3. maven-ear-plugin-MEAR-60.patch
        43 kB
        Jeroen Ruijgers

        Issue Links

          Activity

          Marcel Schutte created issue -
          Marcel Schutte made changes -
          Field Original Value New Value
          Link This issue relates to MEAR-14 [ MEAR-14 ]
          sl010380 made changes -
          Link This issue is related to MNG-1991 [ MNG-1991 ]
          Stephane Nicoll made changes -
          Link This issue duplicates MEAR-67 [ MEAR-67 ]
          Stephane Nicoll made changes -
          Link This issue duplicates MEAR-67 [ MEAR-67 ]
          Barend Put made changes -
          Link This issue is related to MEAR-75 [ MEAR-75 ]
          Joerg Schaible made changes -
          Link This issue relates to MWAR-9 [ MWAR-9 ]
          Jeroen Ruijgers made changes -
          Attachment maven-ear-plugin-MEAR-60.patch [ 51346 ]
          Dennis Lundberg made changes -
          Assignee Dennis Lundberg [ dennislundberg ]
          Dennis Lundberg made changes -
          Fix Version/s 2.7 [ 17293 ]
          Dennis Lundberg made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Andreas Thaler made changes -
          Attachment maven-ear-plugin-addon-1.0-SNAPSHOT.jar [ 58102 ]
          Attachment maven-ear-plugin-addon-1.0-SNAPSHOT-sources.jar [ 58103 ]
          Dennis Lundberg made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Stephane Nicoll made changes -
          Link This issue is related to MEAR-183 [ MEAR-183 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:57:13 UTC 2015 [ 1428227833271 ]
          Mark Thomas made changes -
          Link This issue relates to MWAR-9 [ MWAR-9 ]
          Mark Thomas made changes -
          Workflow jira [ 12720276 ] Default workflow, editable Closed status [ 12750151 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:36:55 UTC 2015 [ 1428277015909 ]
          Mark Thomas made changes -
          Link This issue relates to MWAR-9 [ MWAR-9 ]
          Mark Thomas made changes -
          Workflow jira [ 12957805 ] Default workflow, editable Closed status [ 12994810 ]
          Mark Thomas made changes -
          Assignee dennislundberg [ dennislundberg ] Dennis Lundberg [ dennisl@apache.org ]

            People

            • Assignee:
              Dennis Lundberg
              Reporter:
              Marcel Schutte
            • Votes:
              50 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development