IntelliJ Artifact具有无效扩展名 [英] IntelliJ Artifact has invalid extension

查看:751
本文介绍了IntelliJ Artifact具有无效扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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具有无效扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆