5

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.

gamerson
  • 5,220
  • 1
  • 28
  • 45
Anthony
  • 12,407
  • 12
  • 64
  • 88

5 Answers5

11

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

enter image description here

Anthony
  • 12,407
  • 12
  • 64
  • 88
  • 2
    For clarification, you need to right-click on the project name for this menu. It took me a while to realize this when I couldn't find these options from the main menu - but this screenshot led me to it. – lookdad Apr 06 '17 at 15:13
2

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.

gamerson
  • 5,220
  • 1
  • 28
  • 45
1

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

karthik
  • 137
  • 4
1

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.

Community
  • 1
  • 1
Learner
  • 976
  • 14
  • 29
0

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.

Md Shareef
  • 61
  • 1
  • 2
  • 8