Jun 9th, 2010, 08:51 AM
Offtopic? Maven2 project organization
I already did some EJB3/JSF projects and know how to deploy them as EAR on JBoss. To do this i used 3 projects in Eclipse (EAR project, JSF project and EJB3 project). Now i would like to start with maven. I am very new to this and wonder if its possible with maven to deploy ONLY the JSF or the EJB part without having to deploy the whole EAR file. Reason is that it could be that only web changes took effect, but the EJB is already finished. In my concrete case I am planning to get some web developer and I only want him to be allowed to checkout the JSF project and deploy that part into the JBOSS without having to deploy EJB and without having access to that EJB project source code. I guess a JAR of the EJB project should be enough for the JSF module / this web developer. But how is this setup in Eclipse / Maven2 using standard Spring 3?
Jun 9th, 2010, 11:14 AM
As you alluded to this is probably more of a maven/eclipse question (not really spring related)...Have you tried using the m2eclipse plugin with the WTP integration?
Jun 9th, 2010, 02:49 PM
yes i got that plugin but that doesnt help really. would need more information about how to set up those projects...
Jun 9th, 2010, 05:52 PM
solved... to be honest it was quite simple with maven. love that tool! simply generate 2 poms, one for ejb, one for jsf. then add ejb as dependency to jsf. no other compile or project references in eclipse from jsf to ejb must be added. so when the jsf war gets compiled, it has the source of ejb. but when getting deployed, the jsf war doesnt contain ejb jar anymore and the ejb can be deployed as is.
Tags for this Thread