RE: Liferay IDE Eclipse failed requirements

thumbnail
Philippe Thibault, modified 7 Years ago. Junior Member Posts: 46 Join Date: 9/11/12 Recent Posts

Hello,

I just upgraded eclipse to latest version 2018-12 4.10.0 but then I am unable to re-install Liferay IDE eclipse plugin into it. Eclipse says:

Your original request has been modified.
  "Buildship: Eclipse Plug-ins for Gradle" will be ignored because a newer version is already installed.
  "m2e - slf4j over logback logging (Optional)" will be ignored because a newer version is already installed.
  "m2e - Maven Integration for Eclipse (includes Incubating components)" will be ignored because a newer version is already installed.
Cannot complete the install because one or more required items could not be found.
  Software being installed: Liferay IDE AlloyUI 3.4.0.201811020125 (com.liferay.ide.alloy.feature.group 3.4.0.201811020125)
  Missing requirement: Liferay IDE Gradle Core 3.4.0.201811020125 (com.liferay.ide.gradle.core 3.4.0.201811020125) requires 'osgi.bundle; com.google.guava [15.0.0,16.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: Liferay IDE AlloyUI 3.4.0.201811020125 (com.liferay.ide.alloy.feature.group 3.4.0.201811020125)
    To: org.eclipse.equinox.p2.iu; com.liferay.ide.eclipse.tools.feature.group 3.0.0
  Cannot satisfy dependency:
    From: Liferay IDE 3.4.0.201811020125 (com.liferay.ide.eclipse.tools.feature.group 3.4.0.201811020125)
    To: org.eclipse.equinox.p2.iu; com.liferay.ide.gradle.core [3.4.0.201811020125,3.4.0.201811020125]

It looks like there is a collision between Liferay IDE bundled Gradle Buildship plugin and the Buildship already shipped within this eclipse version. Maybe there is another plugin to satisfy requirements

osgi.bundle; com.google.guava [15.0.0,16.0.0)

? Or those should now be integrated into IDE plugin package?

Btw I am using latest milestone update site:  http://releases.liferay.com/tools/ide/latest/milestone/

thanks for your help!

Phil

thumbnail
Gregory Amerson, modified 7 Years ago. Liferay Legend Posts: 1123 Join Date: 2/16/10 Recent Posts

Hello Phil,

 

Thanks for posting this error report.  Can you try a different updatesite URL and see if you can install from this one?
 

https://ci-devtools.wedeploy.io/job/liferay-ide-build/lastSuccessfulBuild/artifact/build/com.liferay.ide-repository/target/repository/

 

Also you can just add this URL to the available software update sites and then perform a "help > check for updates..." and see if that works for you.

thumbnail
Philippe Thibault, modified 7 Years ago. Junior Member Posts: 46 Join Date: 9/11/12 Recent Posts

Yes it worked, installation was successful. Thanks!

 

Is it safe for me to use this 3.5 version of Liferay IDE? Is it planned to go in a milestone release, or even stable?

thumbnail
Gregory Amerson, modified 7 Years ago. Liferay Legend Posts: 1123 Join Date: 2/16/10 Recent Posts
Yes it is safe.  We are planning on releasing this version 3.5 next week.
thumbnail
Philippe Thibault, modified 7 Years ago. Junior Member Posts: 46 Join Date: 9/11/12 Recent Posts
Perfect, I will be looking for it. Thanks again!
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
Hi, I am facing a similar issue: when using eclipse 2018 12 with liferay IDE plugin, some of the options when right-clicking on every project turn disabled as I hover over them. I also see 2 "liferay" tabs as I right click on a project, and cannot use my team -> synchronize either, as it turns disabled when hovering over it.

I cannot access to this URL either:
https://ci-devtools.wedeploy.io/job/liferay-ide-build/lastSuccessfulBuild/artifact/build/com.liferay.ide-repository/target/repository/
I get a 404.


​​​​​​​

Any help on this?
thumbnail
Charles Wu, modified 7 Years ago. New Member Posts: 13 Join Date: 10/9/17 Recent Posts
Hey Dámaris Suárez Corrales:

 When take a first glace at you project menu, there are extra options like (Chrome Debugger or JAX), these options not existed on default Studio, it seems that your workspace configs are broken. Can you try to switch to a new eclipse workspace?
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
Hi Charles, I am using Eclipe 12-2018, not Liferay Studio Developer, and I started with a fresh workspace, it is strange...a colleague from mine just fetched SDK projects from SVN and got this same problem. It seems this version of eclipse has conflicts with lifery IDE plugin (at least the version 3.1.2).

I tried creating a simple maven project, and it shows normal options, so the problem appears to be with SDK projects
Do you have any ideas of what the problem might be? This is the second time I start afresh. 
thumbnail
Charles Wu, modified 7 Years ago. New Member Posts: 13 Join Date: 10/9/17 Recent Posts
Are you using the latest version 3.5? This version is based on eclipse 2018-12, you can download from https://sourceforge.net/projects/lportal/files/Liferay%20IDE/3.5.0/
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
How can I install it in my eclipse? I am using Liferay 6.2, and when using "Install software" with the URL I'm used to use, I get this:

option,


What shoudl I do with these? Download the zip and unpack it under plugins? 


Thanks a lot
thumbnail
Charles Wu, modified 7 Years ago. New Member Posts: 13 Join Date: 10/9/17 Recent Posts
You need to unpack it and choose 'install from local archive' if you want to install from a zip, of course you can use the link from https://releases.liferay.com/tools/ide/3.5.0/updatesite/ directly
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
I tried using the link and also using the local folder, none of these ways worked. 

I get an Exception when opening eclipse and also the same errors I mentioned earlier. Some of the errors I see in the log are:

​​​​​​​!ENTRY org.eclipse.jface.text 2 0 2019-02-12 13:54:47.231
!MESSAGE Duplicate template id: 'com.liferay.ide.ui.templates.MDRAction.add-action6'
thumbnail
Charles Wu, modified 7 Years ago. New Member Posts: 13 Join Date: 10/9/17 Recent Posts
Since Buildship of version 3.x was bundled in eclipse 2018-12, the LiferayIDE of version 3.5 is the only one that compatible with. Is there any errors when you installing LiferayIDE 3.5 on eclipse 2018-12?
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
Is it possible to avoid the collission between Gradle distribution from Liferay IDE and the one that comes along with Eclipse? I cannot get rid of it, because it has dependencies to Liferay IDE.  I don't need Gradle for my project.

Why does Liferay IDE plugin for Eclipse need to have a Gradle distribution, when Eclipse already has one?

​​​​​​​
thumbnail
David H Nebinger, modified 7 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Because, at the end of the day, Eclipse should not be your build tool.

Ant, Maven or Gradle are your build tools and allow you to incorporate continuous integration, automated testing, etc. into your development process.

Eclipse is just a GUI-based passenger on this train, but it doesn't own the build.
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
I understand that, but neither does Liferay IDE plugin own the build, and at the moment it seems as thought both Eclipse and Liferay IDE plugin are bringing it along, and creating a conflict because of that.

I cannot uncheck the option to install Gradle when installing Liferay IDE for my eclipse, but I already have Gradle from my eclipse, I don't need it. I don't need Gradle at all actually, I use ant for this project.

Do you think of any solution for this library conflict? Are next Liferay IDE plugins be dependent on Gradle?
thumbnail
Charles Wu, modified 7 Years ago. New Member Posts: 13 Join Date: 10/9/17 Recent Posts
Can you try to uninstall buildship and then installing Liferayide 3.5?  Make sure you have eclipse backuped before these opertaions.
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
I tried uninstalling Gradle before installing Liferay, under "About Eclipse" -> "Installation details", I just deleted every instance of Gradle, but after installing Liferay IDE, the problem persists.

​​​​​​​
thumbnail
Charles Wu, modified 7 Years ago. New Member Posts: 13 Join Date: 10/9/17 Recent Posts
Try to delete these files:
1. the jars start with "org.eclipse.buildship"  in eclipse/plugins
2. the feature folders start with "org.eclipse.buildship"  in eclipse/features
3. the properties start with "org.eclipse.buildship" in eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info file

Then restart eclipse, the buildship must be uninstalled, i am sorry if it still can't help with you.
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
Thanks for the suggestion Charles, but as soon as I started removing plugins, my eclipse starts showing errors, so I am trying to find a cleaner and more sustainable solution.
thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
I tried with an Eclipse distribution that does not contain Gradle (Eclipse IDE for JavaScript and Web Developers), but when installing Liferay, the problem persists, so my theory about conflicts between Gradle distributions went down, and I am starting to think, it has to do with the fact that I am using Liferay 6.2? I created a Liferay 7 module and it shows options correctly.

Can it be the case? And if so, can I install an IDE version that does work for Liferay 6.2? 

thumbnail
Dámaris Suárez Corrales, modified 7 Years ago. New Member Posts: 14 Join Date: 3/2/17 Recent Posts
My bad....this Liferay IDE 3.5.0 supports Liferay 7 or greater :/

Is there any way to install a lower distribution from Liferay IDE manually? I have the 3.0.1 and that one works with my Liferay 6.2

Thanks