- Lab
- A Cloud Guru
Deploying an Application with JBoss EAP and Apache Maven
JBoss Enterprise Application Platform provides an extensive Java EE-based application server to which we can deploy and manage our applications. Oftentimes, this can be as simple as deploying a provided WAR or EAR file to our configured server, but when we're creating development environments or otherwise want access to our pre-compiled application files, we can pair JBoss with Apache Maven, which will build our application before JBoss deploys it.
Path Info
Table of Contents
-
Challenge
Install Apache Maven
Install Maven using
sudo yum install maven
. -
Challenge
Deploy the Application
-
Move into the
kitchensink
directory:cd kitchensink
-
Review the contents. It contains a
pom.xml
file for building and deploying the project in Maven. The project itself is stored in thesrc
directory, along with tests.ls
-
Deploy the application:
sudo mvn clean install wildfly:deploy
-
Visit
PUBLICIP:8080/kitchensink
to ensure the application is working.
-
-
Challenge
Make a Change to the Application
-
Undeploy the application:
mvn wildfly:undeploy
-
Make a superficial change to the application:
vim src/main/webapp/WEB-INF/templates/default.xhtml
-
Update the title to add a change:
<title>Add a change!</title>
-
-
Challenge
Redeploy the Application
-
Deploy the application once more; notice how much faster it deploys this time:
sudo mvn clean install wildfly:deploy
-
Visit the application and take note of your change.
-
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.