Chapter 4. JBoss EAP and JBoss WFK basics in CodeReady Studio

The Eclipse IDE supports application development and deployment with Red Hat JBoss Enterprise Application Platform (JBoss EAP) and Red Hat JBoss Web Framework Kit (JBoss WFK).

However, you need to configure Maven repositories first. This configuration is essential for using the enterprise versions of the example Maven projects provided in Red Hat Central. These projects are intended for deployment to JBoss EAP and require IDE access to JBoss EAP and JBoss WFK repositories.

4.1. Configuring Maven repositories

The following section describes how to configure Maven repositories.

Procedure

  1. Start CodeReady Studio.
  2. Click WindowPreferences.

    crs preferences

    The Preferences window appears.

    crs jboss maven integration
  3. Enter JBoss in the search field.
  4. Select JBoss Maven Integration.
  5. Click Configure Maven Repositories.

    The Configure Maven Repositories window appears.

    crs configure maven repos
  6. Click Add Repository.

    The Add Maven Repository window appears.

    crs add maven repo
  7. Click the down-arrow in the Profile ID field.
  8. Select the redhat-ga-repository.

    Other fields are populated automatically.

  9. Click OK.
  10. Click Finish.

    The Confirm File Update window appears.

  11. Click Yes.
  12. Click Apply and Close.

Additional resources

4.2. Setting up JBoss EAP

To set up JBoss EAP in Eclipse, you must direct the IDE to the local or remote runtime servers. This establishes a communication channel between the IDE and the JBoss EAP server for efficient deployment and server management workflows.

The following section describes how to install JBoss EAP in CodeReady Studio.

Prerequisites

Procedure

  1. Start CodeReady Studio.
  2. Click WindowPreferences.

    crs preferences

    The Preferences window appears.

    crs jboss runtime detection
  3. Enter JBoss in the search field.
  4. Select JBoss Runtime Detection.
  5. Click Download.

    The Download Runtimes window appears.

    crs download runtimes
  6. Select the JBoss EAP version you need.

    Note

    If you select the JBoss EAP version 6.0.x or earlier, follow the on-screen instructions. If you select a later version, follow the instructions below.

  7. Click Next.

    The Credentials window appears.

    crs enter redhat credentials
  8. Click Add.
  9. Enter your access.redhat.com username and password.
  10. Click OK.
  11. Click Next.

    Review the license agreement, if satisfied, accept the license and click Next to continue with the installation.

    The Download Runtimes window appears.

    crs downloading runtimes
  12. Click Browse to select the Install folder.
  13. Click Browse to select the Download folder.
  14. Click Finish.

    Note that downloading and installing the Runtime might take a while.

    The JBoss Runtime Detection window appears.

    crs jbos runtimes detection last step
  15. Select the path to the JBoss EAP installation file check box.
  16. Click Apply and Close.

Verification steps

  1. Click WindowShow ViewOther.

    crs window show view other

    The Show View window appears.

    crs show view servers
  2. Type Servers in the search field.
  3. Select Servers.
  4. Click Open.

    The Servers view appears.

Your newly added JBoss EAP is now listed in the Servers view.

crs servers view