Question

I've made a portlet in Eclipse and now I'd like to deploy it to a running Liferay-6.1 instance and debug it. I guess this should be described in documentation, but I was only able to found how to create the portlet, but not how to deploy it.

Was it helpful?

Solution

Here is a screenshot which shows how-to deploy Liferay portlet directly from Eclipse

enter image description here

OTHER TIPS

How to deploy a portlet in Eclipse (using Liferay IDE) is documented here. This assumes that you have installed Liferay IDE, then created a Liferay Server adapter, and then created a project using New Liferay Project wizard.

After completion of developing the portlet go to the browser open the localhost sign in and then-->Goto Add--->more-->expand the sample--->Select Add enter image description here

You can deploy it by using command prompt. Go to location of your plugin portlet and execute the following command:

eg:

D:\Projects\plugin\portlets\test-portlet>ant deploy

Note: you need to configure ant home like this.

If you have a plugin project, but you need to deploy it onto your Liferay Server. Let’s do it now:

Select your new plugin project then right click the Liferay Server in the Servers tab;

Select Add and Remove….

Select your plugin project and click Add to deploy it to the server.

Click Finish.

You should see the project get deployed to Liferay Tomcat server; in the console you’ll see a message indicating your new portlet is available for use.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top