[ 
https://jira.codehaus.org/browse/MASSEMBLY-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MASSEMBLY-746:
----------------------------------------

    Attachment: MASSEMBLY-746.zip

Example project demonstrating the issue. Unpack and execute {{mvn package}}. 
This produces the following warning.

{code}
[ERROR] OS=Windows and the assembly descriptor contains a *nix-specific 
root-relative-reference (starting with slash) /
{code}

This is due to {{<outputDirectory>/</outputDirectory>}} used in a {{<fileSet>}} 
like:

{code}
    <fileSet>
      <directory>src/main/assembly</directory>
      <fileMode>0444</fileMode>
      <directoryMode>0755</directoryMode>
      <lineEnding>dos</lineEnding>
      <filtered>false</filtered>
      <!-- Warning about / being used on Windows. -->
      <outputDirectory>/</outputDirectory>
      <includes>
        <include>bin.xml</include>
      </includes>
    </fileSet>
{code}

The example descriptor also contains

{code}
    <file>
      <destName>descriptor.xml</destName>
      <fileMode>0444</fileMode>
      <filtered>false</filtered>
      <lineEnding>dos</lineEnding>
      <!-- No warning about / being used on Windows. -->
      <outputDirectory>/</outputDirectory>
      <source>src/main/assembly/bin.xml</source>
    </file>
{code}

For the {{<file>}} element, no warnings are produced. This is confusing the 
recommended way to specify the assemblies root directory for an 
{{<outputDirectory>}}.

> Warnings about platform dependent paths inconsistent.
> -----------------------------------------------------
>
>                 Key: MASSEMBLY-746
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-746
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.3
>         Environment: Apache Maven 3.2.3 
> (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
> Java version: 1.7.0_72, vendor: Oracle Corporation
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
>            Reporter: Christian Schulte
>            Priority: Trivial
>         Attachments: MASSEMBLY-746.zip
>
>




--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to