在Intellij IDEA中构建的war文件位于何处? [英] Where is the war file built in Intellij IDEA, located?
问题描述
我正在使用IntelliJ IDEA,每次运行时我都在构建和部署Web应用程序项目。所有这一切都在IntelliJ IDEA中神奇地发生。
I'm using IntelliJ IDEA and I'm building and deploying the web-application project every time I'm running it. All of this happens magically within IntelliJ IDEA.
但是,现在我应该在测试服务器的wildfly上手动部署它,所以我需要一个工件文件(WAR或EAR)来放入独立/部署中测试服务器上运行WildFly10的目录。
However, now I'm supposed to manually deploy it on a test server's wildfly, so I need an artifact file (WAR or EAR) to drop in the standalone/deployments directory on the test server's running WildFly10.
我不能在我的生活中找到IntelliJ Idea导出WAR / EAR工件的地方,这样我就可以将它粘贴到测试服务器上的目录。任何帮助表示赞赏。
I can't for the life of me find where IntelliJ Idea exports the WAR / EAR artifacts so I could copy paste it to the said directory on the test server. Any help is appreciated.
推荐答案
请按照以下步骤操作:
- 单击编辑配置。
- 单击部署并添加工件。
- 应用这些更改。
- 您可以在Build下看到Build Artifacts。
- 点击Build Artifacts,它会在相应的文件夹中创建一个war / jar。
- Click on Edit Configurations.
- Click on Deployment and add your artifact.
- Apply these changes.
- You can see a Build Artifacts under Build.
- Click on Build Artifacts and it will create a war/jar to the respective folder.
如果我错了,请告诉我。
If I'm wrong somewhere let me know.
这篇关于在Intellij IDEA中构建的war文件位于何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!