Closed paulvi closed 7 years ago
Equinox deprecated the -console
option from version 3.8, so now we need to add a bunch more bundles to the default OSGi environment for the Equinox console to work?
Do I understand correctly?
Notice that the config.ini
is already built correctly to start all bundles, so that doesn't need any change.
It reads so, I need to try
However 3.8+ is not in maven central http://mvnrepository.com/artifact/org.eclipse.osgi/org.eclipse.osgi
I've found a newer version of Equinox in Maven Central... you can use this to run with Java 8:
osgiMain = 'org.eclipse:osgi:3.10.0-v20140606-1445'
But I could not find a console. Equinox artifacts in Maven Central are a mess...
If you really need it, you can download the jars from the Equinox downloads page and use it as a flatJar dependency with Gradle (obviously, not portable)... but I don't see any public Maven repository that I can use to fetch the console jar with Gradle, unfortunately.
osgi-run
version 1.5.2 will use Equinox artifact org.osgi:org.eclipse.osgi:3.10.100.v20150529-1857
and run with the Gogo shell, which seems to be the current approach.
Just by chance ran into http://stackoverflow.com/questions/25733843/how-to-start-osgi-console, that gave me answer why possible I could not run one of my first examples against Equinox
The solution is pasted below. Can this be default e.g. for #37 run-any
osgi.bundles=org.apache.felix.gogo.runtime@start, org.apache.felix.gogo.command@start, org.apache.felix.gogo.shell@start, org.eclipse.equinox.console@start