Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ & Wildfly - hot deploy webapp

I am using IntelliJ (14.0.3) and Wildfly (8).

When I recompile my Java classes, hot swapping is easy and everything works just fine. However, my HTML, JS and CSS files will not hot swap for me. I am sure it is just a configuration issue and was hoping for some help.

My HTML data is in:

<root>/<war_module>/src/main/webapp

My run/debug is setup for:

Before launch: Make, Build Artifacts

  1. Make
  2. Build 'mymodule:war' artifact
like image 843
el n00b Avatar asked Feb 03 '15 01:02

el n00b


People also ask

What IntelliJ used for?

You can use IntelliJ IDEA Ultimate to build applications with JavaScript, TypeScript, React, Vue, Angular, Node. js, and other related technologies. You can expect the same advanced coding assistance that you are used to when working with Java in all of them.

Is IntelliJ only for Java?

JVM languages Use IntelliJ IDEA to develop applications in the following languages that can be compiled into the JVM bytecode, namely: Java. Kotlin. Scala.

Is IntelliJ IDEA free?

IntelliJ IDEA Community Edition and IntelliJ IDEA Edu are free and can be used without any license.

Is IntelliJ the best IDE for Java?

With more than 33 percent of the market share, IntelliJ IDEA is the most used Java IDE in 2022. It also has a stellar user rating of 4.3 and a whopping 89 percent user satisfaction. IntelliJ IDEA has unique resources like a version control system, frameworks, and multi-language support.


1 Answers

I had the exact same problem, this is how it worked for me:

After configuring your JBoss server (Wildfly), setup an artifact of type exploded, in my case I selected Web Application: Exploded, and then in the Output directory add .war to the end of the name.

In case you need a .ear, simply select JavaEE Application: exploded instead, but anyways always remember to add manually the extension.

After setting this artifact to work with your Application Server, in the edit configurations of your Wildfly server select the option Update resources in the list of options in the section On frame deactivation.

So every time you modify and save static content, it will update these changes as soon as you focus something else outside the IDE, like the browser.

like image 114
Rafael R. S. Robles Avatar answered Sep 28 '22 21:09

Rafael R. S. Robles