Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I use maven-assembly-plugin v2.5.3 and get the following error

[INFO] Reading assembly descriptor: src/main/assembly/distributive.zip.xml [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) / 

But the build is SUCCESSFUL. What does this error mean?

I've found a mention of it in this issue.

like image 625
naXa Avatar asked Sep 16 '15 09:09

naXa


2 Answers

simplest solution to prevent that warning is:

<fileSets>   <fileSet>     <directory>src/main/resources</directory>     <outputDirectory/>   </fileSet> </fileSets> 

or an other solution is:

<fileSets>   <fileSet>     <directory>src/main/resources</directory>     <outputDirectory>./</outputDirectory>   </fileSet> </fileSets> 

and it shows that something should be fixed.

like image 67
khmarbaise Avatar answered Sep 22 '22 15:09

khmarbaise


This is probably because of Linux-like <outputDirectory>:

<fileSets>     <fileSet>         <directory>${basedir}/src/main/resources</directory>         <outputDirectory>/</outputDirectory>     </fileSet> </fileSets> 

Specify the empty <outputDirectory> or try ./.

like image 40
naXa Avatar answered Sep 21 '22 15:09

naXa