简体   繁体   English

Eclipse Neon.1是否支持Play框架?

[英]Does Eclipse Neon.1 support Play Framework?

I am trying to learn the Play Framework and use Eclispe as my IDE. 我正在尝试学习Play框架并将Eclispe用作我的IDE。

I want to use Eclipse Neon.1 as my IDE, however I cannot find any instructions on how (or what) to install to enable developmenty of Play applications. 我想将Eclipse Neon.1用作我的IDE,但是我找不到有关如何安装(或安装什么)以启用Play应用程序开发的任何说明。

Is it possible and I am not looking in the right place? 有可能,我找的地方不对吗?

Or am I stuck using Eclipse Lunar based Scala IDE? 还是我坚持使用基于Eclipse Lunar的Scala IDE?

Or do I have to purchase IntelliJ IDEA Ultimate IDE? 还是我必须购买IntelliJ IDEA Ultimate IDE?

You can use Eclipse Neon in combination with the Play Framework, but you need to setup sbteclipse . 您可以将Eclipse Neon与Play Framework结合使用,但需要设置sbteclipse

As the documentation states, this can be easily done by adding the following line to your project/plugins.sbt file: 文档所述,可以通过将以下行添加到project/plugins.sbt文件中来轻松完成此操作:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

If you have only Java sources in your project, you also need to add the following lines to your build.sbt file: 如果您的项目中只有Java源代码,则还需要build.sbt添加到build.sbt文件中:

EclipseKeys.projectFlavor := EclipseProjectFlavor.Java
EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.ManagedClasses, EclipseCreateSrc.ManagedResources)

If you develop your project in Scala, then you need to install Scala IDE . 如果您在Scala中开发项目,则需要安装Scala IDE According to the tool description in the Eclipse marketplace, Scala IDE supports the following Eclipse versions: 根据Eclipse市场中的工具描述 ,Scala IDE支持以下Eclipse版本:

Neon (4.6) , Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1), Oxygen (4.7) 霓虹灯(4.6) ,火星(4.5),露娜(4.4),开普勒(4.3),朱诺(4.2、3.8),朱诺(<= 4.1)之前,氧气(4.7)

If you want to have a complete integration of the Play Framework in IntelliJ IDEA, you may opt for the Ultimate edition . 如果要在IntelliJ IDEA中完全集成Play框架,则可以选择Ultimate版 Please note that you may be eligible for a free Ultimate license, if you are a student . 请注意,如果您是学生 ,则可能有资格获得免费的Ultimate许可证。 By the way, you do not necessarily need the Play plugin for IntelliJ. 顺便说一句,您不一定需要IntelliJ的Play插件。 You can develop your Play apps in any editor or IDE and simply manage your projects via the command line. 您可以在任何编辑器或IDE中开发Play应用,而只需通过命令行即可管理项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM