IntelliJ Artifact has invalid extension
Asked Answered
F

5

20

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?

Filtrate answered 21/5, 2013 at 20:27 Comment(3)
I think your exploded directory should have a name ending with '.war' (the directory, not the actual war).Debunk
Thanks Nebelmann, it works fine.Filtrate
same tip worked for me also, but every time i change pom.xml it reverts back that directory name. Does anyone have a better workaround?Tryparsamide
E
28

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.

Eyrir answered 29/8, 2014 at 13:25 Comment(2)
I got tired of editing this after every tiny change to the pom.xml, until I stumbled on a more permanent fix which I describe here https://mcmap.net/q/560093/-intellij-idea-artifact-39-xxxx-war-exploded-39-has-invalid-extensionCyclic
You saved my dayLoan
I
4

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.

Individuation answered 13/7, 2014 at 17:43 Comment(0)
F
2

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

Fringe answered 24/4, 2018 at 12:54 Comment(0)
D
1
  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.

Dependence answered 14/3, 2015 at 14:23 Comment(0)
G
0

I replaced the artifact to be deployed from exploded to war in server configuration and it worked fine for me

Gazebo answered 19/6, 2014 at 21:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.