[ https://issues.apache.org/jira/browse/MASSEMBLY-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336414#comment-16336414 ]
Robert Scholte commented on MASSEMBLY-775: ------------------------------------------ When using {{File}} such path (starting with a slash!) is resolved as absolute on Linux and relative to the working directory on Windows. This can be done on purpose, so maybe a warning is better. However in general I would expect that it should be relative to the project directory, so the starting slash would be a mistake with consequences. I think we should start using {{Path}}, so the behavior is the same for all OSes. {{project.getBasedir().toPath().resolve( "/a/b/c" );}} > Emit WARNING instead of ERROR > ----------------------------- > > Key: MASSEMBLY-775 > URL: https://issues.apache.org/jira/browse/MASSEMBLY-775 > Project: Maven Assembly Plugin > Issue Type: Improvement > Affects Versions: 2.5.5 > Reporter: Karl Heinz Marbaise > Priority: Minor > > I have currently a build which creates several tar/tar.gz/zip archives etc. > {code} > [INFO] Reading assembly descriptor: src/main/assembly/descriptor-inner-tar.xml > [INFO] Reading assembly descriptor: src/main/assembly/descriptor.xml > [INFO] Building tar: C:\...\xyz-X.y.z-SNAPSHOT-dist.tar > [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} > In my opinion the message could be a WARNING instead of an error ? WDYT ? -- This message was sent by Atlassian JIRA (v7.6.3#76005)