I'm using Idea 8M1 and jboss AS 4.2.2.GA. The attached image is about the Project Settings on my machine.
I have 2 EJB modules (business and logging) and a Web module (view). The utility module is a library module which is used by the business, logging and view modules.
I create another module called ifx with the javaEEApplication facet so that I can package all the modules (I'm not sure if this is a right step). Then the application.xml file created by Idea looks like this:
which is exactly what I want.
How do I tell Idea to make a jar for the utility module and and put it in the lib directory when it deploys the ifx module to jboss? The structure of the ifx module when it is deployed on jboss should look like this: