liferay笔记

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.

  1. 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=<project name> -Dportlet.display.name="<portlet title>" create 

 

2.3 转化成Eclipse project

 

ant setup-eclipse 

2.4 自己搞定build path问题,这里的jar包都是指向liferay 源文件里面的lib 包。所以本地最好有liferay源文件.

 

2.5 ant deploy

 

2.6 liferay 页面可以用这个新添加的portlet了

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值