Simple JARS are always accepted in the application servers, so they can be used as external dependencies for enterprise applications. It's important that these libraries are visible to the other application, otherwise they will be of no use inside the application server. The descriptor file managing these libraries is the Java MANIFEST.MF inside the META-INF folder. In this file, we have to state what to expose to external applications. Here's a sample of MANIFEST.MF with the shared classes:
Dependencies: org.some.module, org.another.module