Starting from some assembly plugin version maven builds issue the following warning:
[WARNING] The assembly descriptor contains a filesystem-root relative reference,which is not cross platform compatible /
Is there any recommended ready-to-use solution for this? Direct googling provided me with lot of trash and no real help. Re-check of Maven assembly plugin help did not provide answer for me, maybe someone else has better search skill and can help.
UPDATE
Yes, this is probably because of Linux-like outputDirectory
but how should I rewrite this to be portable? Looked at assembly plugin documentation and not found any portability guide.
<fileSets>
<fileSet>
<directory>${basedir}/src/main/resources</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
/
which would in consequence mean to extract all contens to always same location. Apart from that this location is limited to the root account. Furthermore the questions is why you usefileSets
to get thesrc/main/resources
folder? Special reason for that?src/main/resources
does not go into resulting artifact JAR but goes to .tar.gz package which includes needed additional things like scripts. I just have never tried to not provide anything through<outputDirectory/>
. So @Torsten answer suits me 100%.