Skip to content

Deployment

Tomáš Livora edited this page Mar 26, 2017 · 19 revisions

This document describes how to use IntelliJ IDEA to quickly deploy the application to WildFly application server during the development process. You will need Ultimate Edition since the features used here are not available in the Community Edition.

WildFly Configuration

In order to be able to deploy the application by one click, you will first need to configure WildFly in your IDE:

  1. Prepare WildFly application server
    1. Open a command line
    2. Run mvn clean install -DskipTests
    3. Go to engine/war/target folder
    4. Copy wildfly-10.1.0.Final to some other location (preferably outside of the project)
  2. Enable JBoss Integration plugin
    1. Open IntelliJ IDEA
    2. Go to File -> Settings -> Plugins
    3. Find and check JBoss Integration
    4. Apply the changes and restart the IDE
  3. Add a new application server
    1. Go to File -> Settings -> Build, Execution, Deployment -> Application Servers
    2. Click on a green plus button (Add application server)
    3. Select the path to your copy of wildfly-10.1.0.Final directory
    4. Save the changes
  4. Modify Run/Debug Configurations
    1. Go to Run -> Run/Debug Configurations
    2. Click on a green plus button
    3. Select JBoss Server -> Local
    4. Change the name to WildFly
    5. Choose the previously added application server
    6. Change the URL to http://localhost:8080/lumeer-engine
    7. On the Deployment tab add new artifact engine-war:war
    8. Save the settings

Clone this wiki locally