此内容没有您所选择的语言版本。
4.2.3. Configure Maven for Red Hat JBoss Developer Studio
The artifacts and dependencies needed to build and deploy applications to Red Hat JBoss Enterprise Application Platform are hosted on a public repository. You must direct Maven to use this repository when you build your applications. This topic covers the steps to configure Maven if you plan to build and deploy application using Red Hat JBoss Developer Studio.
If you plan to use Maven command line to build and deploy applications, you can skip this topic. Instead, follow the instructions here: Section 4.2.4.2, “Configure the Maven Settings for Use with Command Line”.
Maven is distributed with Red Hat JBoss Developer Studio, so it is not necessary to install it separately. However, you must configure Maven for use by the Java EE Web Project wizard for deployments to JBoss EAP. The procedure below demonstrates how to configure Maven for use with JBoss EAP by editing the Maven configuration file from within Red Hat JBoss Developer Studio.
Procedure 4.3. Configure Maven in Red Hat JBoss Developer Studio
- Click JBoss Tools and select JBoss Maven Integration.→ , expand
Figure 4.7. JBoss Maven Integration Pane in the Preferences Window
- Click.
- Clickto configure the JBoss GA Tech Preview Maven repository. Complete the
Add Maven Repository
dialog as follows:- Set the Profile ID, Repository ID, and Repository Name values to
jboss-ga-repository
. - Set the Repository URL value to
http://maven.repository.redhat.com/techpreview/all
. - Click thecheckbox to enable the Maven repository.
- Click
Figure 4.8. Add Maven Repository - JBoss Tech Preview
- Clickto configure the JBoss Early Access Maven repository. Complete the
Add Maven Repository
dialog as follows:- Set the Profile ID, Repository ID, and Repository Name values to
jboss-earlyaccess-repository
. - Set the Repository URL value to
http://maven.repository.redhat.com/earlyaccess/all/
. - Click thecheckbox to enable the Maven repository.
- Click
Figure 4.9. Add Maven Repository - JBoss Early Access
- Review the repositories and click.
Figure 4.10. Review Maven Repositories
- You are prompted with the message "Are you sure you want to update the file 'MAVEN_HOME/settings.xml'?". Clickto update the settings. Click to close the dialog.The JBoss EAP Maven repository is now configured for use with Red Hat JBoss Developer Studio.