- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab 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.
-
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.