How to register dependency between EAR and WAR in it

I have the following configuration:
Ear module, containing third party .jar library 'XXX', located in APP-INF/lib directory.
Web-module to be packaged in this Ear, which has code that uses that library.

How should I specify dependency so that IDEA finds that library to compile Java classes in Web module that use 'XXX' library?

Thanks in advance!

Please sign in to leave a comment.