liferay6.2 mysql,Liferay6.2环境搭建及详细配置精讲

This post is for you - if you are new to Liferay Portal, but you already have enough experience with Java development using Eclipse.If you are new to

Stop Liferay Portal- Go to bin folder in tomcat (e.g. liferay-portal-6.2.0-CE-GA1\tomcat-7.0.42\bin)

- Run "shutdown.bat". In 2-3 minutes, it would stop server and close the command prompt. That's it. [***NOTE-

Stop server without fail, as in next step we'll integrate it in Eclipse IDE to start/stop using Eclipse during development.]

Step 4-Install Liferay Plugins in your Eclipse

IDE (3.7 or greater) in same way you install other Eclipse plugins

The Liferay Eclipse plugins would allow you to integrate Liferay portal server and Liferay plugins SDK with Eclipse IDE. So you can control Liferay plugins projects development and deployment using Eclipse IDE.

Go to Help - Install New Software… - Enter the update site URL -%20IDE/2.0.1%20GA2/updatesite/

On successful Liferay plugins installation, you would see those in Eclipse IDE as per below screen. Now you can switch to Liferay perspective using Windows -> Open Perspective -> Other -> Select Liferay.

proxy?url=http%3A%2F%2F3.bp.blogspot.com%2F-4939frbbEvE%2FUvZWbHzebhI%2FAAAAAAAABjk%2FEIcdRKDECSo%2Fs1600%2FLiferay-Portal-6.2-Dev-10.png&container=blogger&gadget=a&rewriteMime=image%2F*

IMPORTANT NOTE:Firstly I tried "IDE 2.0.0.GA1" in Eclipse Kepler and could

install it without any error, butIDE 2.0.0.GA1 was causing

problems to open default page of liferay in browser even if liferay server started successfully. Finally  "IDE 2.0.1.GA2" installation worked perfectly in Eclipse Kepler. However you can always refer to Liferay IDE page for latest updates -.

Step 5-Setup

Eclipse IDE for Liferay Development Environment

Configure new Liferay Server=

Windows -> Preferences -> Liferay -> Create new Liferay Server -> Select Liferay v6.2 CE Server (Tomcat7) and click Next -> Select Liferay Tomcat directory and click Next -> Select Liferay Javadoc and source code -> click Finish.

proxy?url=http%3A%2F%2F3.bp.blogspot.com%2F-TMXQqMDJZGM%2FUvZWbNFVhMI%2FAAAAAAAABjk%2FA3yxKd90dOE%2Fs1600%2FLiferay-Portal-6.2-Dev-11.png&container=blogger&gadget=a&rewriteMime=image%2F*

Configure  new Liferay Plugin SDK= Windows -> Preferences -> Liferay -> Installed Plugin SDK -> Add (configure unzipped Liferay plugin SDK folder o n your machine as per below screen) -> OK.

proxy?url=http%3A%2F%2F2.bp.blogspot.com%2F-oyqTHvkr9Nk%2FUvZWbwgQZvI%2FAAAAAAAABjk%2F2dlsczxWg-4%2Fs1600%2FLiferay-Portal-6.2-Dev-12.png&container=blogger&gadget=a&rewriteMime=image%2F*

Now create a new "build..properties" (where must match with OS username, for example in Windows OS you can get it by executing "echo %username%" on command

prompt) file in your Liferay plugins SDK folder. For example, I created "build.tirthalp.properties" file. Then you can open default "build.xml" file and put required properties to overwrite in "build..properties" file. For example, I overwritten

"app.server.parent.dir=xxxxxxxxxxx", "database.name=lportal62" and "database.types=mysql" to match values with my development setup.

Liferay-Portal-6.2-Dev-13.png

-

Liferay plugins SDK would facilitate you to create different types of Liferay plugins and deploy it directly in Liferay server using Eclipse IDE, hence ensure doing correct configuration of "build..properties" file. But at this stage, don't worry

about all details of liferay plugins sdk!

Start the Liferay serverin same way you start any integrated server in Eclipse & wait for 2-5 minutes. On successful server startup, you  would see "server startup in x ms" message in Console. [***NOTE:

This step would create "portal-ide.properties" file automatically in root folder of Liferay portal server. E.g. D:\Tirthal-LABs\Liferay\liferay-portal-6.2.0-CE-GA1\portal-ide.properties).

proxy?url=http%3A%2F%2F2.bp.blogspot.com%2F-CQOR99sNFkU%2FUvZWcuD0CMI%2FAAAAAAAABjk%2FizS8yPTkuEI%2Fs1600%2FLiferay-Portal-6.2-Dev-14.png&container=blogger&gadget=a&rewriteMime=image%2F*

Now open ":8080/"

url in browser and in less than 1-2 minutes you should see default liferay page. Then you can sign-in using default credentials - test@liferay.com / test (email/password).

Excellent... You completed one time setup steps for Liferay development environment and ready to develop

projects for customization/extension of default features of Liferay portal. Now next step would allow you quickly achieve "Hello World" application in Liferay. Then you can referLiferay

6.2 Developer's Guideto understand different Liferay plug-ins (such as portlets, themes, layouts, hooks and ext) development methodology.

Step 6-Hello World portlet application - Create,

deploy and test in Liferay server

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值