I have a EAR project that I want automatize the building process using maven exclusively.
The EAR project has
- Standard jar modules
- Web modules
- EJB modules
- RAR modules
To be able to execute the product in Jboss 4.2.3 and WebSphere 7 the EJB and RAR descriptors must be configured in different way. Also we have one jar library for each app server.
What I want is to be able to build one EAR for each apps server using the same projects, and for that I need
- Include a JAR module depending of the app server
- Use the customized descriptor in the EJB/RAR modules depending of the app server
- Package all this customized modules in an EAR
Can this be done using the same set of project in maven?