我在jboss上部署工件时遇到了一个奇怪的问题。在IntelliJ中生成默认的spring-mvc项目之后,我尝试运行它,但IntelliJ在运行/调试配置中显示一条消息,表明我的神器XYZ:war爆炸的扩展名无效。
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".
我在stackoverflow更改扩展名上找到了建议,但我有正确的 .war 扩展名。
I found advice on stackoverflow "change extension" but I have correct .war extension.
有什么问题?
推荐答案只需将.war添加到输出目录名称即可。
Simply add .war to your output directory name.
不幸的是,使用Maven更改 pom.xml 可能会导致修改输出目录,您将不得不再次执行此操作。
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.
更多推荐
IntelliJ Artifact具有无效扩展名
发布评论