install JBoss, Seam und Eclipse (German): http://javathreads.de/2008/09/tutorial-mit-jboss-seam-und-jee5-unter-eclipse-starten/
I used the following versions: jboss-5.1.0.GA, jboss-seam-2.1.1, Eclipse 3.6M2
Maven Project Template: http://kasper.eobjects.dk/2009/04/seam-ejbs-and-ear-packaging-in-maven.html
1. Change sayHello in ejb-hello.xhtml to sayHello() (with the parentheses)
2. Change version of facelets dependency in web/pom.xml from 1.1.11 to 1.1.15.B1 to work with JBoss AS 5
Eclipse Maven Plugin: http://code.google.com/p/q4e/
Import project directory as Maven2 project (Seam-EJB-…) .
Eclipse File sync Plugin für Deployment http://andrei.gmxhome.de/filesync/index.html
Create configuration for Filesync:
Filename: packaging/.settings/de.loskutov.FileSync.prefs:
#Wed Oct 07 11:34:44 CEST 2009 WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND defaultDestination=/JBossSeam/jboss/jboss-5.1.0.GA/server/default/deploy defaultVariables= eclipse.preferences.version=1 includeTeamPrivateFiles=false map|0=target|,|*.ear|,|, useCurrentDateForDestinationFiles=false
Deployment:
- start jboss in Eclipse
- mvn install
Steps to adapt the project template
-Change Java files in src/main/java
-Rename the template project name “SeamExample” in the pom.xml files