How to deploy a portlet to Liferay from Eclipse
Asked Answered
D

5

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.

Demp answered 2/10, 2012 at 13:48 Comment(0)
D
11

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

enter image description here

Demp answered 2/10, 2012 at 14:35 Comment(1)
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.Benzidine
M
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.

Monochord answered 8/10, 2012 at 6:55 Comment(0)
F
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

Ferric answered 25/4, 2013 at 6:6 Comment(0)
T
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.

Triolein answered 2/7, 2013 at 5:51 Comment(0)
P
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.

Prostyle answered 17/5, 2013 at 5:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.