Summary: The quickstarts demonstrate various ways of interaction with JBoss ON server. They provide small, specific, working examples that can be used as a reference for your own project.
These quickstarts demonstrate various ways of interaction with JBoss ON server. They provide small, specific, working examples that can be used as a reference for your own project.
Be sure to read this entire document before you attempt to work with the quickstarts. It contains the following information:
-
Available Quickstarts: List of the available quickstarts and details about each one.
-
System Requirements: List of software required to run the quickstarts.
-
Configure Maven: How to configure the Maven repository for use by the quickstarts.
-
Run the Quickstarts: General instructions for building, deploying, and running the quickstarts.
The applications these projects produce are designed to be run on Red Hat JBoss Operations Network 3.2 or later.
To run these quickstarts with the provided build scripts, you need the following:
-
Java 1.6, to run JBoss AS and Maven. You can choose from the following:
- OpenJDK
- Oracle Java SE
- Oracle JRockit
-
Maven 3.0.0 or newer, to build and deploy the examples
-
If you have not yet installed Maven, see the Maven Getting Started Guide for details.
-
If you have installed Maven, you can check the version by typing the following in a command prompt:
mvn --version
-
-
JBoss Operations Network (JON) installed and configured.
- For information on how to install and run JBoss ON, refer to the product documentation at https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Operations_Network/.
The quickstarts use artifacts located in the JBoss GA and Early Access repositories. You must configure Maven to use these repositories before you build and deploy the quickstarts.
-
Locate the Maven install directory for your operating system. It is usually installed in
${user.home}/.m2/
.For Linux or Mac: ~/.m2/ For Windows: "\Documents and Settings\USER_NAME\.m2\" -or- "\Users\USER_NAME\.m2\"
-
If you have an existing
settings.xml
file, rename it so you can restore it later.For Linux or Mac: mv ~/.m2/settings.xml ~/.m2/settings-backup.xml For Windows: ren "\Documents and Settings\USER_NAME\.m2\settings.xml" settings-backup.xml -or- ren "\Users\USER_NAME\.m2\settings.xml" settings-backup.xml
-
If you have an existing
repository/
directory, rename it so you can restore it later. For exampleFor Linux or Mac: mv ~/.m2/repository/ ~/.m2/repository-backup/ For Windows: ren "\Documents and Settings\USER_NAME\.m2\repository\" repository-backup -or- ren "\Users\USER_NAME\.m2\repository\" repository-backup
-
Copy the
settings.xml
file from the root of the quickstarts directory to your Maven install directory.For Linux or Mac: cp QUICKSTART_HOME/settings.xml ~/.m2/settings.xml For Windows: copy QUICKSTART_HOME/settings.xml "\Documents and Settings\USER_NAME\.m2\settings.xml" -or- copy QUICKSTART_HOME/settings.xml "\Users\USER_NAME\.m2\settings.xml"
Note: If you do not wish to configure the Maven settings, you must pass the configuration setting on every Maven command as follows: -s QUICKSTART_HOME/settings.xml
-
Locate the Maven install directory for your operating system. It is usually installed in
${user.home}/.m2/
.For Linux or Mac: ~/.m2/ For Windows: "\Documents and Settings\USER_NAME\.m2\" -or- "\Users\USER_NAME\.m2\"
-
Restore the
settings.xml
file/For Linux or Mac: mv ~/.m2/settings-backup.xml ~/.m2/settings.xml For Windows: ren "\Documents and Settings\USER_NAME\.m2\settings-backup.xml" settings.xml -or- ren "\Users\USER_NAME\.m2\settings-backup.xml" settings.xml
-
Restore the
repository/
directoryFor Linux or Mac: mv ~/.m2/repository-backup/ ~/.m2/repository/ For Windows: ren "\Documents and Settings\USER_NAME\.m2\repository-backup\" repository -or- ren "\Users\USER_NAME\.m2\repository-backup\" repository
See the individual quickstart README files for information on how to run the quickstarts.