Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-871

Descriptor ref "bin" causes error messages in the build log on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0, 3.1.1
    • 3.2.0
    • predefined descriptors
    • None

    Description

      When using the builtin assembly descriptor bin, the build output contains ERRORs when run on Windows:

      [INFO] --- maven-assembly-plugin:3.1.0:single (create-bin-distro) @ descriptor-ref-demo ---
      [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) /
      [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) /
      [INFO] Building tar: C:\path\to\my\project\target\descriptor-ref-demo-1.0.0-SNAPSHOT.tar.gz
      [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) /
      [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) /
      [INFO] Building tar: C:\path\to\my\project\target\descriptor-ref-demo-1.0.0-SNAPSHOT.tar.bz2
      [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) /
      [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) /
      

      However, the build succeeds and produces valid archives (tar.bz2, tar.gz and zip).

      The problem should rather be logged as WARN than as ERROR.

      To reproduce this issue, I created a demo project on GitHub: https://github.com/ferstl/MASSEMBLY-871 .

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              st.ferstl@gmail.com Stefan Ferstl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m