2.3. Start Developing Prerequisite Tasks
There are two prerequisite tasks that must be completed before commencing the tutorials. The JBoss Web Framework Kit projects in the Start Developing tutorials are Maven-based and require the JBoss EAP and JBoss Web Framework Kit Maven repositories. Once downloaded and the contents extracted, you must configure Maven to use these repositories. Further, these tutorials deploy the project applications to JBoss EAP servers and so you must set up JBoss EAP servers for use within JBoss Developer Studio. These prerequisite tasks are detailed here.
2.3.1. Configure Maven
The JBoss Web Framework Kit projects in the Start Developing tutorials are Maven-based and require the JBoss EAP and JBoss Web Framework Kit Maven repositories. Maven is distributed with JBoss Developer Studio so it is not necessary to install Maven. But, once downloaded and the contents extracted, you must configure Maven to use these specific repositories by editing your Maven configuration file, settings.xml. You can edit settings.xml from within JBoss Developer Studio as detailed in the procedure below.
Important
The procedure details how to configure Maven for using the JBoss Web Framework Kit Maven repository. Once complete, you must repeat this procedure to configure Maven to also use the JBoss EAP Maven repository, replacing the file paths and names accordingly.
Procedure 2.1. Configure Maven
- Click →, expand JBoss Tools and select JBoss Maven Integration.
- Click .
- Click .
- Click .
- Navigate to
path/to/jboss-wfk-maven-repositoryand 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 .
- Click and 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.
- Click and click to close the Preferences window.
Note
Maven settings, such as the configuration file, are specified in Preferences under Maven→User Settings. These settings can be customized.
2.3.2. Set Up a Server Using Runtime Detection
These tutorials deploy the project applications to JBoss EAP servers from within JBoss Developer Studio. To accomplish this, you must first inform the IDE about the servers you want to use. JBoss Server Tools provides a runtime detection feature and, as demonstrated in the procedure below, this locates and sets up servers so that they can be used from within the IDE.
Procedure 2.2. Set Up a Server Using Runtime Detection
- Click →, expand JBoss Tools and select JBoss Runtime Detection.
- Click .
- Navigate to
path/to/jboss-eapand click . JBoss Server Tools recursively scans the path searching for installed servers and displays a list of those it finds. - Ensure the jboss-eap-version check box is selected, where version denotes the JBoss EAP version, and click .
- Click and click to close the Preferences window. The server is listed in the Servers view in stopped mode.



