Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

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.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 30m
Published
Clock icon Jan 24, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Install Apache Maven

    Install Maven using sudo yum install maven.

  2. Challenge

    Deploy the Application

    1. Move into the kitchensink directory:

      cd kitchensink
      
    2. Review the contents. It contains a pom.xml file for building and deploying the project in Maven. The project itself is stored in the src directory, along with tests.

      ls
      
    3. Deploy the application:

      sudo mvn clean install wildfly:deploy
      
    4. Visit PUBLICIP:8080/kitchensink to ensure the application is working.

  3. Challenge

    Make a Change to the Application

    1. Undeploy the application:

      mvn wildfly:undeploy
      
    2. Make a superficial change to the application:

      vim src/main/webapp/WEB-INF/templates/default.xhtml
      
    3. Update the title to add a change:

      <title>Add a change!</title>
      
  4. Challenge

    Redeploy the Application

    1. Deploy the application once more; notice how much faster it deploys this time:

      sudo mvn clean install wildfly:deploy
      
    2. Visit the application and take note of your change.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans