You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2019/02/16 22:06:00 UTC

[jira] [Comment Edited] (MASSEMBLY-871) Descriptor ref "bin" causes error messages in the build log on Windows

    [ https://issues.apache.org/jira/browse/MASSEMBLY-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770237#comment-16770237 ] 

Michael Osipov edited comment on MASSEMBLY-871 at 2/16/19 10:05 PM:
--------------------------------------------------------------------

Pushed a branch with a possible fix. Please validate. Passes on Windows. Need to see have it behaves on non-Windows. I have just noticed that this anti-pattern is used in many ITs.


was (Author: michael-o):
Pushed a branch with a possible fix. Please validate. Passes on Windows. Need to see have it behaves on non-Windows.

> Descriptor ref "bin" causes error messages in the build log on Windows
> ----------------------------------------------------------------------
>
>                 Key: MASSEMBLY-871
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-871
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: predefined descriptors
>    Affects Versions: 3.1.0, 3.1.1
>            Reporter: Stefan Ferstl
>            Assignee: Michael Osipov
>            Priority: Minor
>             Fix For: 3.1.2
>
>
> When using the builtin assembly descriptor {{bin}}, the build output contains ERRORs when run on Windows:
> {code}
> [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) /
> {code}
> 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 .



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)