aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Project organization JSF 1.2 / EJB3 with Maven2 - How? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Project organization JSF 1.2 / EJB3 with Maven2 - How?" Watch "Project organization JSF 1.2 / EJB3 with Maven2 - How?" New topic
Author

Project organization JSF 1.2 / EJB3 with Maven2 - How?

Ray Blue
Greenhorn

Joined: Jul 12, 2009
Posts: 8
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?


SCJP 6.0
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I think you may need to look at Cargo or Jboss plugins? Maybe the deploy plugin with options can also help here


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Ray Blue
Greenhorn

Joined: Jul 12, 2009
Posts: 8
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 ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Project organization JSF 1.2 / EJB3 with Maven2 - How?
 
Similar Threads
Do I need a parent project or will ear suffice
Import Netbeans Maven Enterprise Project in Eclipse
eclipse galileo + m2eclipse + enterprise application
Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals
Eclipse + ANT building EAR project - best practices? Manuals?