Java Intellij:构建 | 构建工件已停用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36303535/
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
Intellij: Build | Build Artifacts deactivated
提问by WetWer
I want to create a .jar File using IntelliJ 2016.1
我想使用 IntelliJ 2016.1 创建一个 .jar 文件
When I want to create a .jar file the Build Artifacts is deactivated.
当我想创建一个 .jar 文件时,Build Artifacts 被停用。
Is there somthing i must change in my settings or is there somthing missing on my computer? Please help :)
有什么我必须在我的设置中更改或我的计算机上缺少什么吗?请帮忙 :)
I dont need help on how to create a JAR file.
我不需要关于如何创建 JAR 文件的帮助。
采纳答案by Harmelodic
It's likely that you haven't configured that you want to build a .JAR/Artifact.
您可能尚未配置要构建 .JAR/Artifact。
If you go to to your Project Settings
by doing:
如果你通过以下方式去你Project Settings
的:
Ctrl+Shift+Alt+S
Ctrl+ Shift+ Alt+S
and click on the Artifacts
tab on the side.
并单击Artifacts
侧面的选项卡。
Then click the Green +at the top, you'll be able to configure your project to build an artifact.
然后单击+顶部的绿色,您将能够配置您的项目以构建工件。
Then Build > Build Artifacts...
should not be greyed out and your should be able to build your JAR.
然后Build > Build Artifacts...
不应该变灰,您应该能够构建您的 JAR。