Here is a sample Maven2 project structure that provides the following capabilities:
- Hot Deployment using WTP (set publishing to auto or manually publish in the IDE)
- Linked source code in the Eclipse IDE for all third party libraries (if available in the Maven repositories)
- Seam components are availabile in the context menus in various JBoss Tools editors (visual editor for example)
- Eclipse class path references Maven2 repository
- Upgrade Seam minor releases by changing a variable
The setup takes some time, but it is worth the effort because:
- The project source remains in a native Maven2 structure and can be seamlessly integrated with a build server i.e. Hudson.
- There is no need to run Maven2 targets in Eclipse, WTP handles deployment via the publish feature.
Required Software:
- Eclipse Ganymede 3.4 (with WTP installed)
- Maven 2.0.9
- JBoss Tools Plugin 3 CR
- JBoss 4.2.3 Application Server
Setup:
- Install all software above
- Use sample project as a guide to configure your specific projects / artifacts
- Create a workspace in eclipse
- Create a WTP server reference (that references the installed JBoss application server)
- Configure workspace path and server reference in sample-proj/pom.xml
- Execute mvn eclipse:eclipse from the sample-proj directory
- Import all projects into your Eclipse workspace
- Build workspace in Eclipse
- Right click on the EAR project and select Run-As..Run on Server ... and select the configured JBoss Server.
Download Sample Project