[SOLVED] [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!

[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 and Earn Free Points!

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>
Could You Please Share This Post? 
I appreciate It And Thank YOU! :)
Have A Nice Day!

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.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?