Java 在 Intellij 上建立战争
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19323908/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Building a war on intellij
提问by user1801279
I have a Java EE project I have imported into IntelliJ . I can compile the project but for some reason not able to build a war artifact , when I go to the build
tab the <build artifacts>
option is blanked out ( ie I cannot select it ) . my project compiles fine but I am still confused on how I could build my war .
我有一个已导入 IntelliJ 的 Java EE 项目。我可以编译该项目,但由于某种原因无法构建战争工件,当我转到build
选项卡时,该<build artifacts>
选项被取消(即我无法选择它)。我的项目编译得很好,但我仍然对如何构建战争感到困惑。
采纳答案by user1801279
Operating sequence can be such (dependent of IDE version):
操作顺序可以是这样的(取决于IDE版本):
Choose:
选择:
File -> Project Structure -> Artifacts
文件 -> 项目结构 -> 工件
Then press Alt+Insertand create new artifact:
然后按Alt+Insert并创建新工件:
After this actions item Build artifactsshould be available.
在此操作项之后,构建工件应该可用。