Building a war on intellij

Tags: , ,



I have a Java EE project I have imported into IntelliJ . I can compile the project but for some reason not able to build a war artifact , when I go to the build tab the <build artifacts> option is blanked out ( ie I cannot select it ) . my project compiles fine but I am still confused on how I could build my war .

Answer

Operating sequence can be such (dependent of IDE version):

Choose:

File -> Project Structure -> Artifacts

Then press Alt+Insert and create new artifact:

enter image description here

After this actions item Build artifacts should be available.



Source: stackoverflow