3.5. Sportsclub and Red Hat JBoss Developer Studio
Sportsclub is a Maven-based project, so you can import it into JBoss Developer Studio.
Procedure 3.1. To import sportsclub into Red Hat JBoss Developer Studio
- Go to → .
- In the Import window, double-click → .
- In the window, click and select . Then select the version of Spring to use.ResultThe top-level pom and the module subpoms are displayed.
- Click .
At this point, it is important to choose if you would like to have the messaging profile in the application. The messaging profile is activated by default and you can deactivate the messaging profile.
Procedure 3.2. To deactivate the messaging profile:
- Right-click on submodule in the tab in the left pane.
- In the right-click menu, go to → .
- In the window, select from the list.
- Click and then click .
There are slight differences between the context definitions that apply in various configurations, and some definitions may not be included (as is the case with the messaging profile). This means that the poms of several modules include alternative locations for web resources, which are added by Maven at build time.
Procedure 3.3. To add web resources to a project:
- Go to → .
- In the left pane of properties window, click and then click .
- In the window, double-click and select the folder to be included in the deployment assembly.
- Click .
- Click and then click .ResultThe contents of the selected folder are added automatically in the document root of the application.
Depending on the selected profiles, additional directories need to be added as shown in the following table:
Table 3.1. Additional resource folders per module and profile
| Module | Active profile | Additional folder |
|---|---|---|
| sportsclub-invoicing-webmvc |
|
|
Note
The application activates messaging profile by default, so additional resources need to be added even if active profiles are not explicitly indicated.
The application is ready to run.
- On the view, choose a JBoss Enterprise Application Platform 6 server.
- Add one of the two EAR projects:
- sportsclub-ear
- sportsclub-jpa-ear
- Start the project.