Loading...

Getting started with JBoss EAP Quickstarts

This post demonstrates how to setup the quickstart examples for the stable release JBoss EAP 6.4. The quickstart projects offer a variety of examples for the usage of Java EE 6 with JBoss.

First of all, checkout the project from GitHub. Open the shell or gitbash on windows:

$ git clone https://github.com/jboss-developer/jboss-eap-quickstarts.git
Cloning into 'jboss-eap-quickstarts'...
remote: Counting objects: 101739, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 101739 (delta 19), reused 4 (delta 4), pack-reused 101702
Receiving objects: 100% (101739/101739), 48.58 MiB | 635.00 KiB/s, done.
Resolving deltas: 100% (41761/41761), done.
Checking connectivity... done.
Checking out files: 100% (3198/3198), done.

List tags

vinnie@W30060 MINGW64 /c/dev/src/jboss-eap-quickstarts (7.0.x-develop)
$ git tag
1.0.0.Alpha2
1.0.0.Alpha3
1.0.0.M1
1.0.0.M2
1.0.0.M2b
1.0.0.M2c
1.0.0.M3
1.0.0.M3b
1.0.0.M4
1.0.0.M5
1.0.0.M6
1.0.0.M7
1.0.0.M8
2.0.0.ER8
6.2.0.Beta1
6.2.0.GA
6.3.0.GA
6.4.0.GA
6.4.0.develop
7.0.0.CR1
7.0.0.Final
7.0.0.Final-subsystem
7.0.1.Final-subsystem
7.0.2.CR1
7.0.2.CR1-javaee
7.0.2.CR2
7.0.2.CR3
7.0.2.CR4
7.1.0.Beta1
7.1.0.Final
7.1.1.CR1
7.1.1.CR2
7.1.1.Final
7.1.2.M1
EAP-6.2.0.ER4
EAP_7.0.0.Beta1
jdf-2.0.0.CR3
jdf-2.0.0.Final
jdf-2.0.0.M3
jdf-2.1.0.Final
jdf-2.1.1.Final
jdf-2.1.2.Final
jdf-2.1.5.Final
jdf-2.1.6.Final
jdf-2.1.7.Final
jdf-2.1.8.Final
jdf-2.1.9.Final
jdf-eap6.1-initial-merge
jdf-eap6.1-update2
master-6.2.0.ER4
master-6.2.0.ER5

Update to dedicated release, tag: 6.4.0.GA for example

vinnie@W30060 MINGW64 /c/dev/src/jboss-eap-quickstarts (7.0.x-develop)
$ git checkout tags/6.4.0.GA
Checking out files: 100% (3206/3206), done.
Note: checking out 'tags/6.4.0.GA'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
  git checkout -b <new-branch-name>
HEAD is now at 71a4719... Update versions for 6.4.0.GA release

If you are working in a company network, you might add the proxy to the delivered settings.xml.

<proxies>
<proxy>
            <id>yourProxy</id>
            <active>true</active>
<protocol>http</protocol>
            <username>vinh</username>
<password>secret</password>
            <host>proxy.cinhtau.net</host>
<port>8080</port>
            <nonProxyHosts>localhost| 127.0.0.*| 10.*| 192.168.*</nonProxyHosts>
        </proxy>
    </proxies>

Read more at https://maven.apache.org/guides/mini/guide-proxies.html, if you have further questions about proxies with Apache Maven. Build the project with Apache Maven 3 and the settings.xml from RedHat and skip the tests. You may deactivate all active or default activated profiles, if you don’t met the requirement.

mvn clean install -s settings.xml -Dmaven.test.skip=true

After that you run or deploy the generated Java EE artifacts to the JBoss EAP 6.4.x versions. Have fun. If you want to start with a quick project setup, e.g. a simple web application (war)

mvn archetype:generate \
 -DarchetypeGroupId=org.jboss.archetype.eap \
 -DarchetypeArtifactId=jboss-javaee6-webapp-ear-blank-archetype \
 -DarchetypeVersion=6.4.0.GA -s settings.xml