Liferay: Fix the Error in eclipse by using Liferay IDE and own project folder organization

4.2k Views Asked by At

I want to use the Liferay IDE, but I don't want to put my portlets to ~/liferay-sdk/portlets/ folder. Is it possible? Currently I get the error in eclipse:

No Liferay Plugin SDK configured on project CMS-portlet

And the selection of Liferay SDK is empty.

enter image description here

When I copy this portlet to ~/liferay-sdk/portlets/ folder then all works fine. But this is no way for me, I don't want to put my projects to sdk-folder.

2

There are 2 best solutions below

0
On BEST ANSWER

I found the workaround thats work for me. Simple disable the Liferay SDK validaton:

enter image description here

1
On

AFAIK the current version of Liferay IDE depends on the ant script integration from the plugins sdk, thus the requirement to have the ant infrastructure available (this lives inside the SDK).

You may have more luck with maven projects, but they're not directly supported by Liferay IDE, however, you can use them with plain eclipse. Also, even if you go without maven, you can work with plain eclipse.