Using Maven, how to properly deploy WAR depending on J2EE/JPA JAR?
问题 I'm creating a modular Maven project. Project is deployed on Glassfish 3.1. Project (webapp) consists of three modules: "Common", consisting of core functionality (persistence, authentication logic, etc.), built into a JAR "User", depending on Common, built into a WAR "Admin", also depending on Common and WARred Both WAR use heavy annotated (@Entity, @Inject, @EJB, ...) classes from Common. Currently Common is a JAR, but it's not a requirement. The question is: How to properly deploy such