Foros de discusión

Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

thumbnail
Johannes Feulner, modificado hace 7 años.

Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 4 Fecha de incorporación: 5/07/16 Mensajes recientes
I cannot create a Liferay project with Liferay IDE 3.

In Eclipse Preferences->Liferay there is no dialog to enter the path to the Plugins SDK. The only entries I see are "Maven", "Plugin Validation" and "XML Search". "Installed SDKs" is missing.

When creating a Liferay project, e. g. a theme project in Eclipse, I am prompted for the Plugins SDK's path. However, the path /var/lib/liferay/com.liferay.portal.plugins.sdk-7.0 where the SDK resides is not accepted.

What's wrong, I am using

Eclipse Mars.2 Release (4.5.2)
Liferay IDE 3.0.0.201604280251-ga1
com.liferay.portal.plugins.sdk-7.0
java-8-openjdk-amd64

Appreciate your help,

Johannes
thumbnail
Gregory Amerson, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
What is the error that is says when you point to your Plugins SDK? It requires you to correctly configure your build.username.properties file to point to your server.

Also have you looked at using Liferay workspace?

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/creating-a-liferay-workspace

and building themes with new theme building tools?

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/introduction-to-themes
Sri Pendyala, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 4 Fecha de incorporación: 14/07/16 Mensajes recientes
Hi Gregory,

I am not able to configure Plugins SDK Directory inside Liferay IDE3. I choose File -> Import -> Liferay -> Liferay Plugins SDK Directory option.Please see the attached document for screen shots. My build.<username>.properties file has following entries.

app.server.type=tomcat

app.server.parent.dir=C:/bundles/liferay-ce-portal-7.0-ga2

app.server.tomcat.dir=${app.server.parent.dir}/tomcat-8.0.32
app.server.tomcat.deploy.dir=${app.server.tomcat.dir}/webapps
app.server.tomcat.lib.global.dir=${app.server.tomcat.dir}/lib/ext
app.server.tomcat.manager.user=tomcat
app.server.tomcat.manager.password=tomcat
app.server.tomcat.portal.dir=${app.server.tomcat.dir}/webapps/ROOT

Please let me know if i am missing anything.

Thanks,
Sri Pendyala
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
Hey Sri , can you create portlet via command line ?
Sri Pendyala, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 4 Fecha de incorporación: 14/07/16 Mensajes recientes
Hi Andy, Without Plugins SDK, I can create Liferay Module project with MVCPortlet component but i can't run it as dragging that module project in to the Liferay Portal 7.x isn't working.

Thanks,
Sri
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
did you get any error or could you upload your code or could you describe your step so we can reproduce your problem ?
Sri Pendyala, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 4 Fecha de incorporación: 14/07/16 Mensajes recientes
Hi Andy, No error. I created Liferay Workspace and then Module under it with mvcportlet component using IDE wizards. I didn't add anything additional and nothing happens when i try to drag that module to Liferay Portal 7.x server.

Thanks,
Sri
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
Hey Sri , could you upload your sample code here and we can reproduce your issue.
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Hi Andy and others.

I'm having the same issue with Liferay Plugins SDK. From the command line I have been able to build a empty portlet and deploy it into my Liferay 7 server. But there's no way to make Liferay IDE accept the plugin folder.

I've tried it from the "File -> Import -> Liferay -> Liferay Plugins SDK Directory" option and from the "New Liferay Plugin Project" wizard. I both cases I get the message "This sdk location is not correct". My SDK location is:
/home/jose/liferay/plugins/com.liferay.portal.plugins.sdk-7.0

Thanks in advance.
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
hey Jose , can you post your build.{user.name}.properties file's content here , so I can reproduce your problem.
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Hi Andy.

Thanks for helping me. I'm sending you the build.{username}.properties file and the standard build.properties file. As you could see, the only thing that I'm changing is:
app.server.parent.dir=/home/jose/Dropbox/workspace/healthpoint/bundles

All the other variables are composed in build.properties from the "app.server.parent.dir" defined in build.jose.properties.

It's curious that I can build and deploy portlets by using manually "ant" from the plugin SDK folder. I'm sending you a file (ant.txt) with the output I get when building two sample portlets.

Thanks again for you help. Best regards.
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
I didn't find any problem in your build file , so could you upload your sdk folder which can't be accepted in ide ?
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Hi Andy.

Even compressed, the folder needs 200 Mb of space. I've tried to upload it to the forum but it doesn't work; I suppose that there's a limit with the size of the files that you can upload.

I've put a tar.gz file with the SDK in the public folder of my Dropbox. You can download it from this URL:
https://db.tt/hzASZfAt

Thanks again for your help. Best regards.
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
yeah , got it , I am trying .
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
hey Jose , what is you liferay server version ? I can't reproduce the error.
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Hi Andy.

I'm using:
Eclipse Java EE, Neon Release 4.6.0, build 20160613-1800.
Liferay IDE 3.0.0. I attach you a screen capture with the versions of all the modules.
Bundled Liferay 7 server, installed at /home/jose/Dropbox/workspace/healthpoint/bundles. It's the version that is installed when you ask to download and install it automatically.

Thanks. Best regards.

Archivos adjuntos:

thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
sorry I didn't get you mean , I just want to know your liferay server version , 7-ga1 or 7-ga2 or dxp ?
abhishek kumar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 138 Fecha de incorporación: 17/08/15 Mensajes recientes
Hello

To configure with Plugin sdk 7 build.properties file is there ( In Liferay plugin sdk ) modified it with respect to tomcat , i did same things then it can take easily the plugin sdk and replace with this jar too , i got my problem resolved but this is not a recommended way to do as in Liferay introduced OSGI in liferay 7 so there are lots of changes in plugin development.

Regards
Abhishek
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Hi Abhishek.

Thanks for your help. I've already tried to include more variables in my custom build.properties file, but it didn't worked. And the point is that mine should be right since I can make a build from command line.

About the JAR file: where should I put it? It seems that Eclipse doesn't accept the file as SDK, it needs a folder.

Best regards.
abhishek kumar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 138 Fecha de incorporación: 17/08/15 Mensajes recientes
Jose C Cuellar:
Hi Abhishek.
About the JAR file: where should I put it? It seems that Eclipse doesn't accept the file as SDK, it needs a folder.
Best regards.


For jar paste in .Ivy folder in plugin sdk , if it is already there then replace it with this jar and clean the server and restart.
Just make sure the properties file should be configured properly .


Regards
Abhishek
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Abhishek, I've tried what you told me but it doesn't work for me :-( . Maybe it's because I'm using Linux (Mint 17.3); from your build file I suppose that you are using Windows.

Thanks anyway ;-)
abhishek kumar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 138 Fecha de incorporación: 17/08/15 Mensajes recientes
Yes
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
Hey Jose , if you are using sdk-ga5 , it has a bug , you should config your build.{user.home}.properties like this

app.server.parent.dir=D:/dev java/portal/liferay-portal-6.2-ce-ga5
app.server.tomcat.dir=${app.server.parent.dir}/tomcat-7.0.42


that meas you should have the tomcat version. but default version is 7.0.62 , ide will check the existence of the tomcat-xx folder
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Hi again, Andy.

I'm using SDK for v7-ga2, with tomcat 8.0.32. Anyway, I have tried what you told me. My personal build file is now:

app.server.parent.dir=/home/jose/Dropbox/workspace/healthpoint/bundles
app.server.tomcat.dir=${app.server.parent.dir}/tomcat-8.0.32

It still doesn't work :-(

It's curious that Liferay IDE lets me to select the SDK for version 6.2 (liferay-plugins-6.2.x), but not the SDK for v7 (com.liferay.portal.plugins.sdk-7.0).

Once again, thanks for your help. Best regards.
thumbnail
Andy Wu, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
You are welcome Jose , Now I can confirm it is a bug in ide 3.0.0 (can't import 7.0-sdk , ide will check sdk/ext/build.xml,but it doesn't exist in 70-sdk )but it is fixed in ide 3.0.1 , so please update to ide 3.0.1 and thanks reporting this.
Regards.
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
I've uninstalled v3.0.0 and installed v3.0.1. Now it works.
Thanks a lot. Best regards.
thumbnail
Jose C Cuellar, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 19 Fecha de incorporación: 27/07/16 Mensajes recientes
Liferay Community Edition Portal 7.0.1 GA2 (Wilberforce / Build 7001 / June 10, 2016)
thumbnail
Vipin Bardia, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 162 Fecha de incorporación: 28/02/11 Mensajes recientes
Hi Sri,

Please try to add below lines to your build properties-


app.server.dir = D:\\Liferay\\NewTomcat\\liferay-portal-7.0-ce-ga1\\tomcat-8.0.32

ivy.version = 2.3.0 
ivy.jar.url = http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.4.0/ivy-2.3.0.jar


Regards
Sri Pendyala, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

New Member Mensajes: 4 Fecha de incorporación: 14/07/16 Mensajes recientes
Hi Vipin,

No luck. Still getting the same error 'This parent sdk project path is invalid.'. Is the property name 'app.server.dir' or 'app.server.tomcat.dir'.

Thanks,
Sri
thumbnail
Anuvab Ghosh, modificado hace 7 años.

RE: Liferay 7 IDE 3 doesn't regocnize Plugins SDK 7

Regular Member Mensajes: 130 Fecha de incorporación: 18/04/15 Mensajes recientes
Hi, I have faced the same issue.

Please give some solutions.

Thanks in advance.

Thanks and Regards,
Anuvab