"Link via manifest and copy flies to" doesn't work properly

i'am trying to make a ejb module with the option: "Link via manifest and copy flies to" set, and the result is a lot unexpected.

i tell to IntelliJ that the library must be in the root location of the "Path Relative to Deployment Root" that is "/X.jar", but that i obtain is a jar file for the compile module AND a copy of my library in the same location:

/Module.jar
/X.jar

if i set the location of the library to the path /lib/X.jar

that i obtain is:

/Module.jar
/lib/X.jar

can anyone explain me how two fix it,
( Great IDE, congratulations guys )

Please sign in to leave a comment.