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

Axel Fontaine edited comment on MASSEMBLY-771 at 6/9/15 5:42 AM:
-----------------------------------------------------------------

Here is the descriptor:

<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
 http://maven.apache.org/xsd/assembly-1.1.0.xsd";>
    <id>linux-x64</id>
    <formats>
        <format>tar.gz</format>
    </formats>
    <baseDirectory>base</baseDirectory>
    <componentDescriptors>
        
<componentDescriptor>src/main/assembly/component.xml</componentDescriptor>
    </componentDescriptors>
<files>
        <file>
            <source>src/main/assembly/LICENSE_DE.txt</source>
            <outputDirectory>/</outputDirectory>
            <fileMode>644</fileMode>
            <lineEnding>lf</lineEnding>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/assembly/LICENSES-THIRD-PARTY.txt</source>
            <outputDirectory>/</outputDirectory>
            <fileMode>644</fileMode>
            <lineEnding>lf</lineEnding>
            <filtered>true</filtered>
        </file>
    </files>
    <fileSets>
        <fileSet>
            
<directory>target/dependency/server-jre-linux-x64-tar.gz/jdk1.8.0_45/jre</directory>
            <outputDirectory>/jre</outputDirectory>
            <fileMode>755</fileMode>
        </fileSet>
    </fileSets>
</assembly>

Since this build has to run both on Windows & Linux, I wouldn't know how to fix 
it. Suggestions?


was (Author: axel.fontaine):
Here is the descriptor:

<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
 http://maven.apache.org/xsd/assembly-1.1.0.xsd";>
    <id>linux-x64</id>
    <formats>
        <format>tar.gz</format>
    </formats>
    <baseDirectory>base</baseDirectory>
    <componentDescriptors>
        
<componentDescriptor>src/main/assembly/component.xml</componentDescriptor>
    </componentDescriptors>
    <fileSets>
        <fileSet>
            
<directory>target/dependency/server-jre-linux-x64-tar.gz/jdk1.8.0_45/jre</directory>
            <outputDirectory>/jre</outputDirectory>
            <fileMode>755</fileMode>
        </fileSet>
    </fileSets>
</assembly>

Since this build has to run both on Windows & Linux, I wouldn't know how to fix 
it. Suggestions?

> Regression: Unable to create tar.gz in cross-platform build without error 
> messages on Windows
> ---------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-771
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-771
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.5
>         Environment: Windows
>            Reporter: Axel Fontaine
>
> Recent versions of the assembly plugin started outputting a harmless, but 
> annoying error message when creating tar.gz files from Windows:
> [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific 
> root-relative-reference (starting with slash) /mypath
> This used to work fine with older versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to