Create new JBoss Tools Documentation Jira issue

This will launch the Jboss Tools Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.orgCommunity Documentation

Chapter 3. Maven Integration for Seam Projects

3.1. Creating Maven ready Seam project
3.2. Existing Maven Projects Import
3.3. Relevant Resources Links

Starting from 3.1 M2 version JBoss Tools includes new Jboss Maven Integration plug-in which for now allows to create mavenized Seam projects and enable Seam tools support for imported Maven projects.

The Jboss Maven Integration requires m2eclipse to be installed.

Note:

For M2 release of Jboss Tools it is important to use m2eclipse stable updatesite or the latest integration build that M2 was developed against. If you want to use the latest development release of m2eclipse you need to use the nightly builds of JBoss Tools.

Maven Integration makes the Seam Wizard capable of creating Maven ready projects to let Maven get the libraries instead of using the Seam runtime.

To create a mavenized Seam project you should perform the following steps:

The organized Seam project contains five projects with the Maven nature, builder, Maven classpath and the pom.xml files added: projectname, projectname-ear, projectname-ejb, projectname-parent and projectname-test.


Maven Integration includes the Seam Maven configurator which is called when importing a project, changing pom.xml and/or calling Maven > Update Project Configuration. When importing a Maven Seam project, the Seam Maven configurator picks up the settings set up in pom.xml and adds to the project the following:

If the Seam version from pom.xml matches a version of a Seam runtime configured in the workspace, Seam configurator will set that runtime, otherwise no Seam runtime will be set and you'll have to set it manually under Seam Settings in the project preferences.

Seam configurator recognizes the Seam artifacts in the following way: the view folder is a web content folder from the WAR project, the source folder is the first Eclipse source folder. If there is a folder containing "hot" in the name, it will be chosen as the action source folder. Package is the first package that has children or doesn't have any subpackage.

Configuring the Seam when importing a Maven project as well as a Seam Runtime, Seam artifacts and some facets could be suspended in the JBoss Maven Integration preferences ( Window > Preferences > JBoss Tools > JBoss Maven Integration).


In the Using Maven with JBoss Tools article written by Max Andersen you'll find references to the screencasts on how to use the examples of mavenized Seam projects provided by JBoss Tools.