jbosstools / m2e-polyglot-poc

M2E Polyglot Support Experiment
Eclipse Public License 1.0
15 stars 8 forks source link

Cannot install in Eclipse Mars #2

Closed dsyer closed 8 years ago

dsyer commented 8 years ago

An error occurred while collecting items to be installed session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,oracle.eclipse.tools.rest.lib,8.4.0.201510191754

fbricon commented 8 years ago

@dsyer oracle.eclipse.tools.rest.lib is not a dependency of m2e-polyglot-poc. I'm not sure why you get this error. I suggest you either check "Contact all update sites during install to find required software", or try on fresh eclipse installation

dsyer commented 8 years ago

Thanks. I already had that checkbox selected, so that didn't help. There are some other errors. Does this look relevant?

eclipse.buildId=3.7.1.201510041213-RELEASE-e45
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments:  -product org.springsource.sts.ide
Command-line arguments:  -data file:/home/dsyer/dev/cloud/workspace/ -os linux -ws gtk -arch x86_64 -product org.springsource.sts.ide

org.eclipse.equinox.p2.transport.ecf
Error
Tue Nov 17 15:45:02 GMT 2015
HTTP Server 'Internal Error': http://plm.tt.com.pl/eclipse-plugins/updateSite/content.xml

org.eclipse.ecf.filetransfer.BrowseFileTransferException: HttpComponents connection error response code 500.
    at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:289)
    at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
dsyer commented 8 years ago

Actually unchecking that check box allowed me to install the feature. But I don't see any right-click menu in the Project->Configure (like in the video in Youtube). How can I verify that it is working?

fbricon commented 8 years ago

Your log shows eclipse is started with Java 1.7. The POC requires 1.8, so you need to edit your eclipse.ini (or whatever sts.ini if you're using STS) and add the -vm parameter, pointing at a JDK 1.8. See https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM

And I need to make the 1.8 requirement explicit in the readme

dsyer commented 8 years ago

Running with Java 8 now. And there is no Configure menu at all(!). New errors (a few that look like this):

eclipse.buildId=3.7.1.201510041213-RELEASE-e45
java.version=1.8.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments:  -product org.springsource.sts.ide
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.springsource.sts.ide

org.eclipse.ui
Error
Tue Nov 17 16:03:43 GMT 2015
Plug-in 'org.eclipse.wst.jsdt.ui' contributed an invalid Menu Extension (Path: 'org.eclipse.ui.projectConfigure' is invalid): org.eclipse.wst.jsdt.internal.web.ui.convertProjects
dsyer commented 8 years ago

Wait! It works (the configure menu is back, or maybe I just didn't see it). The errors above still there but apparently not relevant. Thanks for your patience. It's installed now, so we can close the issue (maybe you want to keep it open to make sure the Java 8 requirement is obvious?). I actually thought I was running on Java 8 because my JAVA_HOME is set that way, but apparently that's not enough for Eclipse.

fbricon commented 8 years ago

Fixed readme in https://github.com/jbosstools/m2e-polyglot-poc/commit/b753c4a10b7a013b6153cefc792d41e1045b26fd