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?
Simply add .war to your output directory name.
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.
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.
This is the bug in IntelliJ. It does not support upper case on Artifact.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With