本文介绍了如何在IntelliJ Java / Gradle项目中添加构面以创建自给自足的战争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b


  1. 下载并安装IntelliJ 12.04社区版

  2. >从外部源创建项目(指向Gradle构建脚本)

  3. 将JDK 7指定为项目的SDK



注意:Project是github的开源代码:Netflix / karyon



问题



想要简单地对项目进行战争。在安装GAE插件的商业版本上播放时,我可以指定Web应用程序方面,并通过构件功能创建战争。使用上述设置,唯一可用的方面是Android。



问题

如何在IDE中创建一个自给自足的战争(包括所有依赖关系,因此可以放在任何容器中,而无需额外的类路径要求)?

解决方案

IntelliJ IDEA社区版 ,你需要使用其他工具来打包战争(例如Maven)。

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?

解决方案

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

这篇关于如何在IntelliJ Java / Gradle项目中添加构面以创建自给自足的战争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 20:03