Various users have reported integration testing with Seam is not working in 'Mavenized' projects.
Migrate Seam build system to full maven
Maven example for Seam
Improve handling of dependencies in examples
The main problem is the library mismatch and classpath issues. A working maven example with the seam distribution would greatly help. Thanks.
The seam download zip doesn't contain the embedded bootstrap jar.
Here's the maven error when running "mvn test":
Embedded error: Unable to download the artifact from any repository
Where can I find this mystical jar (preferable with pom) and any chance it can be deployed to the jboss repo to make our live a bit easier?
Thanks for the great work! We've downloaded the testproject-master-JBSEAM-2371.zip, added the dependency patch Jason describes as <!-- JG added for classpath --> and this works well. Needed to up the version of TestNG to 5.8 because the @BeforeClass annotation fails otherwise. We need @BeforeClass because we use a modified SeamTest that loads only one Hibernate session factory for a group or suite. We have also added dbunit support which brings in dependency conflict for xerces, but that was resolved by adding it also to the dependencies Jason added. Note that these must appear first in order to debug with TestNG in eclipse. This is our first maven project and so far we have found a maven solution for each of our hurdles - nice.
FWIW, I've released seam-ear-archetype at http://code.google.com/p/open-archetypes/
it will generate a nested multi module project, allowing you to run integration tests (i.e. using the embedded JBoss) both compatible with eclipse (m2eclipse 0.9.9 and testng plugin required) and maven.
It's an early version, so it will assume you already created a mysql database having the same name as your main artifact, and it's targeted at running on JBoss 5. I'm currently testing JBoss Tools integration.
this is core task for migration of Seam to Maven
All examples except WIKI are using maven and integration testing with JBoss Embedded as in-memory container.