It's not a secret anymore!*
The moose likes Other Application Frameworks and the fly likes Seam and Maven2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Seam and Maven2" Watch "Seam and Maven2" New topic
Author

Seam and Maven2

Marcus Smedman
Greenhorn

Joined: Apr 07, 2008
Posts: 12
Hi,

I've put some time into learning the Maven2 tool, and I find it absolutely wonderful. When I went to look into Seam a while ago, I found out that there was some major differences in Seam/Maven project structure and that there where no easy integration to use Maven2 to build, test, package Seam projects.

I wonder: Am I totally wrong here, is there really no problem using Seam/Maven2? If not, have there been any changes to this lately? Or is it planned?

Best regards
Marcus
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Yeah good question. I came across the word Ivy - while browsing web for Seam related stuff - and it sounds like Maven2 sort of stuff. Does it provide different package structure and all? or I completely misunderstood the thing.
Dan Allen
Author
Ranch Hand

Joined: Mar 05, 2003
Posts: 164
First, Seam does not have a "project structure". It operates in any standard Java EE packaging (WAR or EAR).

Now, seam-gen, on the other hand, is a project generator that comes with Seam that does produce a particular project structure. The structure that it produces, as you have observed, is not a standard Maven 2 layout. There are reasons for this, one of which is that it is optimized for quick redeployment whereas Maven 2 is pretty bad at doing anything quick.

You do not have to use seam-gen to use Seam, though I recommend that you start there so that you can play around with Seam without the hassle of figuring out how to set things up. You can also use the JBossTools plugin for Eclipse for the same purpose.

If you are interested in getting a Maven 2 project for Seam going, there is lots of discussion over at seamframework.org on this very topic. Seam does publish its artifacts to the JBoss Maven 2 repository and even provides a root POM which you can use to avoid having to identify all the dependencies. At this time, there is no official seam-gen equivalent that generates a Maven 2 project for Seam (though there are plans to do so). However, I'm sure there are plenty of places online today that you can find Maven 2 archetypes for Seam projects.
[ October 08, 2008: Message edited by: Dan Allen ]

Dan Allen | http://mojavelinux.com | Author of Seam in Action - http://mojavelinux.com/seaminaction
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 462
Originally posted by Dan Allen:
I'm sure there are plenty of places online today that you can find Maven 2 archetypes for Seam projects.


Take a look here for example.


Visit my blog: http://jnassef.blogspot.com/
Jason Porter
Ranch Hand

Joined: Apr 26, 2007
Posts: 120
Dan blogged about using Ivy with Seam a few days ago if you're interested in that route (http://in.relation.to/Bloggers/ManagingTheDependenciesOfASeamgenProjectWithIvy). I'm sure he'd love the comments about Maven2 support as well, as would the rest of the Seam team.
Marcus Smedman
Greenhorn

Joined: Apr 07, 2008
Posts: 12
Thanks for the feedback, all of you!
 
 
subject: Seam and Maven2