Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-671

The cargo-maven2-plugin uberwar war merging functionality produces invalid war archives (entry names with '\' instead of '/')

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 0.9
    • Fix versions: 1.0
    • Components: Core
    • Labels:
      None
    • Environment:

      Windows XP, JDK Sun 1.5, cargo-maven2-plugin 0.3.1, cargo-core 0.9

      Description

      I am using your great uberwar packaging type to merge severals wars.

      I do it in two steps : first merging 2 wars, then merging the resulted war with another war.
      (Please dont tell me to merge the 3 wars in one time, this is not what I want to do, for code mutualisation reasons)

      So the first merge by uberwar works great, but the second fails with "Exception during merging web.xml"
      Looking at your sources, the second merge cannot find the "web.xml" file in the war produced by the first merge.

      This, because it searchs for "WEB-INF/web.xml" as a ressource part of the war, and uberwar creates, on Windows plateforms, war with "WEB-INF\web.xml"

      I suggest, and patch is attached, to bypass the file.separator plateform setting, to create war achives with '/' as path separator in entry names, as the plexus/AbstractZipArchiver do

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              benoitguerin Benoit GUERIN (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: