软件及文档准备:
1.eclipse liferay plugin
choose the latest version is now 1.6.1
2.liferay-tomcat
Use the configured file, in order to avoid the tedious configuration for tomcat.
3.liferay SDK
4.liferay sql script
5.liferay source code
6.mysql
配置:
1.install
liferay plugin
open eclipse ——> Help ——> Install New Software ——> Add ——> Archive ——> choose
the eclipse- liferay- plugin
2.config SDK
window ——> preferences ——> Liferay ——> Add
select the sdk file which has been unzipped.
3.config tomcat
window ——> Server ——> Runtime Environment ——> Add
select tomcat and JRE in liferay portal file.
创建工程:
1.New ——> Liferay Project
2.右击Liferay Sever ——> Add or Remove ——> Add All ——> Finish
3.Start the Liferay Server[Tomcat7].
4. 第一次运行时,会提供数据库的配置。此时可以选择使用默认示例数据库HSQL或者更换为其他数据库。本例中更换为mysql数据库 现在mysql中创建 数据库lportal 然后连接,liferay将运行脚本创建一可用的liferay工作库。
5. 在Server启动完成后,可访问localhost:8080/
注: 第四项liferay sql script用来初始化数据库,解压出来选择其一即可,一般情况,选择create-minimal-mysql.sql,也就够用。
-----------------------------------------------------------------------------------------------------------------------------------
导入已存在的工程步骤:
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Importing+Existing+Projects