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

Seam and Maven2

Marcus Smedman

Joined: Apr 07, 2008
Posts: 12

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
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
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 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 | | Author of Seam in Action -
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

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:
Jason Porter
Ranch Hand

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

Joined: Apr 07, 2008
Posts: 12
Thanks for the feedback, all of you!
I agree. Here's the link:
subject: Seam and Maven2
It's not a secret anymore!