liferay笔记

2017/02/12 iteye
  1. 扩展开发方式       refer to:       1) http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Development%20Environment%20(Windows);jsessionid=DB374B4B6CDBE3F3211E4538AAB5CFB5       2) http://hi.baidu.com/joelli/blog/item/8205a0ed7103034579f05514.html 这个比较靠谱       主要步骤是: 1.1 安装对应的JDK,Ant,Tomcat。设置环境变量 1.2 下载liferay源文件并导入Eclipse 1.3  添加三个文件覆盖参数             app.server.{your_name}.properties:设置tomcat目录             release.{your_name}.properties: 设置EXT工程目录             build.{your_name}.properties: 设置Build.xml的一些属性              1.4  ant clean start build-ext   1.5 配置mysql         1.5.1 create database lportal       1.5.2  execute script liferay-portal-src-5.2.3\sql\portal-minimal. edit ext-impl/src/portal-ext.properties ## MySQL jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=root jdbc.default.password=     1.6  ant clean deploy        2. lifeRay plugin SDK 开发   2.1 download the plugins SDK from the 'Additional Files' section on the Liferay website. 2.2 This provides ant scripts, to create a simple JSR compliant portlet   ant -Dportlet.name= -Dportlet.display.name="" create    2.3 转化成Eclipse project   ant setup-eclipse  2.4 自己搞定build path问题,这里的jar包都是指向liferay 源文件里面的lib 包。所以本地最好有liferay源文件.   2.5 ant deploy   2.6 liferay 页面可以用这个新添加的portlet了    

Search

    Table of Contents