Using IntelliJ IDEA to develop Lift applications
来源:互联网 发布:轻薄笔记本 知乎 编辑:程序博客网 时间:2024/05/01 22:35
Using IntelliJ IDEA to develop Lift applications
At the moment (in absence of a proper Lift plug-in for IntelliJ), you can use IntelliJ as a code completion/syntax checking/import managing tool.You will need Maven, SBT and the Scala plug-in for IntelliJ. IntelliJ will manage your dependencies using the POM, you will build and run with SBT. Get all three, then proceed as follows.
Steps
- Use one of the Maven archetypes referenced elsewhere on this wiki to create a Lift project. The pom.xml will be used by IntelliJ to import your dependencies
- Create an SBT project on top of the Maven project (enter the project directory and run SBT) Go to the Maven project, for example: lift_test/. Then run sbt. After that, run reload and update. Then run jetty-run command and you can view the page fromhttp://localhost:8080.
- Create a new IntelliJ project from what results, using Import Project from External Model => Maven
- Add a Scala aspect to the project, employing Use Files. Point the plug-in to the project/boot subdirectory where SBT downloaded your Scala
- Develop with pleasure
- Run your project.
Click Maven Project on the right of IDEA, clikc lift_test(your project name), click jetty and then click jetty.run to run your project.
Gotchas
- The Scala plug-in does not treat implicits as dependencies yet. If you’re importing implicits into a page (e.g., DSLs, e.g., the LIft JSON DSL), the dependency will be grayed out as if unused. It’s not. Don’t remove it, or optimize imports on that file – you will get cryptic compilation errors
Comments
- The Scala plugin in only being actively developed for the version 10 (X) release of IDEA which is currently in “Early Access Program” (pre-release). If you have questions about stability or usability of specific versions, please feel free to ask in the Google group/mailing list.
- It is perfectly acceptable to use Ant for developing in Lift. If your organization’s management does not buy off on switching to SBT or Maven and you need assistance setting up an Ant build, please direct your questions to the Google group/mailing list.
- To enable full syntax checking in the Scala plugin:
Mac: Command + alt/option + shift + e
Windows: alt + control + shift + e
- Using IntelliJ IDEA to develop Lift applications
- Using Intel® INDE 2015 to Develop OpenCL™ Applications
- How to develop web applications?
- Upload local Git repository to remote using IntelliJ IDEA plugin
- Using JConsole to Monitor Applications
- Using JConsole to Monitor Applications
- 【IDEA】IntelliJ IDEA:Logging system failed to initialize using configuration from 'classpath:config/l
- Using Struts to Develop Our Web Application
- Using OpenLayers to develop a WebGIS Client
- Using Axis2 to develop web service.
- using virtual environment to develop your project
- How to develop Smartphone 2003 applications on VS 2005
- How to Develop Web Applications with Ajax, Pt. 1
- How to Develop and Run JavaFX Applications Offline
- What do we need to develop android applications?
- How to develop OpenGL ES (GLES) 2.0 applications on Linux
- Transform RCP applications to web applications using RAP
- How To Enumerate Applications Using Win32 APIs
- JAVA JDBC方式连接字符串的基本步骤
- resport .ent报表中当除数为零,文本框显示"错误号"。解决办法
- phpmyadmin设置密码和修改密码的方法
- MongoDB
- 基站定位(2)
- Using IntelliJ IDEA to develop Lift applications
- magento 常用插件 key 与 url 地址
- FreeBSD下MongoDB数据库的安装
- 我的第一个android小程序(wifi的开关button的实现)
- 同一个表中查询不同的数据,执行时间相差很远,是什么原因?
- 影响滤波器实现结构的三大因素
- 管理者的四个转变
- HDU1561 The more,The better 树形DP
- Android 图标收集ING