问题
Background
- Download and install IntelliJ 12.04 Community Edition
- Create project from external source (point to Gradle build script)
- 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