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

Reason

This error may occur during Maven build. The reason is simple and this is due wrong path in <outputDirectory> section in assembly config XML file.

Basically this error occurs when you are trying to build project that is compatible with Linux on Windows 🙂

Solution

Change path in <outputDirectory> to correct value. Please find the example below. In most cases the “./” (dot and slash) before path will resolve problem.

<fileSets>
        <fileSet>
            <directory>${project.basedir}</directory>
            <outputDirectory>./</outputDirectory>
            <includes>
                <include>*/include>
            </includes>
        </fileSet>
</fileSets>

If you enjoyed this post please add the comment below or share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments