PyvesB / eclipse-solargraph

:gem: Ruby development tools for Eclipse.
https://marketplace.eclipse.org/content/ruby-solargraph
Eclipse Public License 2.0
30 stars 6 forks source link

pom.xml: Using tycho version 2.7.0 #23

Closed spchamp closed 1 year ago

spchamp commented 1 year ago

With tycho version 2.5.0 I was seeing bundle resolution errors when running maven package. This was with OpenJDK 11 from openSUSE Tumbleweed.

After updating to tycho 2.7.0 I was able to run maven package in the same OS environment. This produced a plugin *.jar file in eclipse-solargraph-plugin/target/. This file can then be installed by copying the file to a suitable plugins directory for the Eclipse installation. The location of that directory may vary per whether the Eclipse installation is user-writable. If it is user-writable, the plugins dir under the Eclipse installation may work. If not, there may be a plugins dir under an installation-specific subdir or ~/.eclipse/.

This has been tested for building a *.jar under OpenJDK 11 on openSUSE. The plugin was then tested in an Eclipse installation on FreeBSD, using OpenJDK 18. After installing the solargraph and readapt gems then configuring the paths for these in the plugin preferences, it's usable on FreeBSD, with the patch from the earlier pull request for using a relative bash pathname.

This patch updates the tycho version to 2.7.0. The latest stable version is 3.0.0 at present, it might work too

PyvesB commented 1 year ago

Thanks @spchamp, could you please also update the version here: https://github.com/PyvesB/eclipse-solargraph/blob/945cd96a9b097c103cf0b0ba16aafac7888f5fc0/.mvn/extensions.xml#L6

spchamp commented 1 year ago

I've updated the file and pushed to the patch branch. Health