Search

2.2. Configure Maven to use the JBoss EAP Maven Repository

download PDF
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

  1. Click WindowPreferences, expand JBoss Tools and select JBoss Maven Integration.
  2. Click Configure Maven Repositories.
  3. Click Add Repository.
  4. Click Recognize JBoss Maven Enterprise Repositories.
  5. Navigate to path/to/jboss-eap-6.x.y-maven-repository and click OK. JBoss Maven Tools recursively scans the path searching for the Maven repository.
  6. Modify the information in the ID and Name fields as desired, ensure the Active by default check box is selected and click OK.
    Modify the information in the ID and Name fields as desired, ensure the Active by default check box is selected and click OK.

    Figure 2.1. JBoss EAP Maven Repository Listed for Adding to the Maven Configuration File

  7. Click Finish and at the prompt asking if you are sure you want to update the Maven configuration file click Yes. 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 MavenUser Settings. These settings can be customized.
  8. Click Apply and click OK to close the Preferences window.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.