[英]Importing Play Framework module into existing IntelliJ project
I have an IntelliJ project with several modules. 我有一个带有几个模块的IntelliJ项目。 Inside the project directory, I've created a folder with a Play Framework application in it, and I would like to add this as a module to the existing project.
在项目目录中,我创建了一个包含Play Framework应用程序的文件夹,我想将此作为模块添加到现有项目中。 If I just go to project structure and import module, none of the dependencies are imported.
如果我只是转到项目结构和导入模块,则不会导入任何依赖项。 How do I fix this?
我该如何解决?
Edit: Sorry, I should have said that I have run play idea
to get the IntelliJ files. 编辑:对不起,我应该说我已经运行
play idea
得到的IntelliJ文件。 If I open the folder as a project, it works. 如果我将文件夹作为项目打开,则可以使用。 If I try to import it into an existing project as a module, it doesn't add all the dependencies to the Libraries section, and I get red everywhere.
如果我尝试将其作为模块导入到现有项目中,则不会将所有依赖项添加到“库”部分,并且到处都是红色。
Did you modifiy the build file? 您是否修改了构建文件? See http://www.playframework.com/documentation/2.1.x/SBTSubProjects
参见http://www.playframework.com/documentation/2.1.x/SBTSubProjects
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.