[
https://issues.apache.org/jira/browse/MASSEMBLY-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087454#comment-17087454
]
Bruce Wen commented on MASSEMBLY-775:
-------------------------------------
Even use ${file.separator}, it still print warning.
{code:java}
100 <descriptors>
101
<descriptor>${basedir}${file.separator}resources${file.separator}b${file.separator}assembly.xml</descriptor>
102 </descriptors>
{code}
{code:java}
[INFO] --- maven-assembly-plugin:3.2.0:single (default) @ ipt-test ---
[INFO] Reading assembly descriptor: /a/resources/b/assembly.xml
[WARNING] The assembly descriptor contains a *nix-specific root-relative
reference (starting with slash). This is not portable and might fail on
Windows: /
[WARNING] The assembly descriptor contains a *nix-specific root-relative
reference (starting with slash). This is not portable and might fail on
Windows: /
[WARNING] The assembly descriptor contains a *nix-specific root-relative
reference (starting with slash). This is not portable and might fail on
Windows: /
{code}
> 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
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)