How to add facets to an IntelliJ Java/Gradle project to create a self-sufficient war

五迷三道 提交于 2020-01-03 04:24:07

问题


Background

  1. Download and install IntelliJ 12.04 Community Edition
  2. Create project from external source (point to Gradle build script)
  3. Specify JDK 7 as project's SDK

Note: Project is open source at github: Netflix/karyon

Problem

Want to simply war the project. In playing on the commercial version with GAE plugin installed, I was able to specify the Web Application facet, and create the war via the artifact functionality. With the setup described above, the only available facet is Android.

Question

How can I create a self sufficient war (includes all dependencies and hence can be dropped in any container without additional classpath requirements) from within the IDE?


回答1:


IntelliJ IDEA Community edition doesn't have Java EE support, you need to use some other tool for packaging the war (e.g. Maven).



来源:https://stackoverflow.com/questions/15749485/how-to-add-facets-to-an-intellij-java-gradle-project-to-create-a-self-sufficient

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!