This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?
actually it was quiet easy at last (after i found maven). The jsf project must not include the sources or any reference to the EJB project inside eclipse. In the next step the ejb and jsf project both need a pom. And finally i set a dependency in jsf to ejb with only compile time scope. So the source could be compiled, but the exported war file doesnt contain any ejb jars anymore and the ejb can simply be deployed apart from jsf ;)