Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't chose a Liferay Plugin SDK in Eclipse

I have checked out an existing project from SVN into Eclipse as aLiferay project (in fact the checked in project IS a Liferay project). The problem is that I get an error:

       *No Liferay Plugin SDK configured on project Xxx-portlet.*


Opening the project properties I can see under Liferay menue item that indeed there is no SDK selected. Following the Configure SDKs link I can see an existing installed Liferay Plugin SDK and it's already selected. Clicking OK (even after de- and re-selecting the installed Plugin SDK) the input field remains empty. How can I assign the Liferay Plugin SDK to the project??

like image 247
du-it Avatar asked Feb 08 '26 02:02

du-it


1 Answers

Plugins SDK is an ant-based download that relies on your projects to be in common locations: If you just check out one project, you'll need to have this in a subdirectory of the plugins sdk - e.g. if you are working on a portlet (project name "my-portlet"), this should be located in ${plugins-sdk}/portlets/my-portlet.

In eclipse (or Liferay IDE) you should configure your plugins sdk by naming it and pointing to the root of your sdk folders. Then you can choose to create projects into this sdk (or to import from that SDK)

Note that the sourcecode will be located in the SDK directory, not in the eclipse workspace directory.

This is necessary as IDE relies on the ANT infrastructure to be there and the build.xml files reference common build.xml files in the parent directory. Some build processes in Liferay IDE will trigger ANT.

Liferay IDE 2.0 will also support maven, so this requirement will go away (if you use maven)

like image 97
Olaf Kock Avatar answered Feb 12 '26 05:02

Olaf Kock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!