Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Artifact has invalid extension

I have strange a problem with deploying an artifact on jboss. After generating the default spring-mvc project in IntelliJ, I tried to run it, but IntelliJ showed in "Run/Debug Configuration" a message that my "Artifact XYZ:war exploded has invalid extension".

I found advice on stackoverflow "change extension" but I have correct .war extension.

What is wrong?

like image 996
user902691 Avatar asked May 21 '13 20:05

user902691


4 Answers

Simply add .war to your output directory name. Add .war extension at the right place

Unfortunately changing the pom.xml with Maven will probably result into a modification of the output directory, and you will have to do it again.

like image 149
Nicolas Zozol Avatar answered Nov 01 '22 21:11

Nicolas Zozol


There is a bug report that's over two years old. Still hasn't been resolved. Here is another bug report, also two years old, that's marked as a duplicate.

like image 42
Patrick Garner Avatar answered Nov 01 '22 21:11

Patrick Garner


This is the bug in IntelliJ. It does not support upper case on Artifact.

like image 2
sudar Avatar answered Nov 01 '22 22:11

sudar


  1. Open module settings (F4 on your project)
  2. Go to artifacts
  3. make sure that Output directory points to folder with suffix ".war"

    XXsomewar_exploded.war

If not, just delete all artifacts with red minus sign, and click then plus sign and select war exploaded. Then also select Build on make checkbox

Go also to your project on disk, and check folder out, if it containes exploaded war folder and if stuff is inside.

like image 1
Mitja Gustin Avatar answered Nov 01 '22 23:11

Mitja Gustin