[ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) / – read quick and easy solution in 2 mins!

You are currently viewing [ERROR] OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash) / – read quick and easy solution in 2 mins!
Photo by Annie Spratt on Unsplash
Share This Post, Help Others, And Earn My Heartfelt Appreciation! :)
4.7
(1355)

Reason of OS=Windows and the assembly descriptor contains

This error (OS=Windows and the assembly descriptor contains) 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 and share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!

How useful was this post?

Click on a star to rate it!

Average rating 4.7 / 5. Vote count: 1355

No votes so far! Be the first to rate this post.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments