2.2. Configure Maven to use the JBoss EAP Maven Repository
The Java EE Web project, on which the tutorial TicketMonster application is built, is constructed from an enterprise Maven archetype. Maven is distributed with JBoss Developer Studio so it is not necessary to install Maven but, to be able to use the Java EE Web project enterprise archetype, Maven must be correctly configured to use the JBoss EAP 6.x Maven repository. Instructions are given here for editing your Maven configuration file from within JBoss Developer Studio to achieve this.
Procedure 2.2. Configure Maven to use the JBoss EAP Maven Repository
- Click JBoss Tools and select JBoss Maven Integration.→ , expand
- Click.
- Click.
- Click.
- Navigate to
path/to/jboss-eap-6.x.y-maven-repository
and click . JBoss Maven Tools recursively scans the path searching for the Maven repository. - Modify the information in the ID and Name fields as desired, ensure the Active by default check box is selected and click .
Figure 2.1. JBoss EAP Maven Repository Listed for Adding to the Maven Configuration File
- Clickand at the prompt asking if you are sure you want to update the Maven configuration file click . If the specified configuration file does not exist, JBoss Maven Tools creates it.
Note
Maven settings, such as the configuration file, are specified in Preferences under Maven→User Settings. These settings can be customized. - Click Preferences window.and click to close the