Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Done
-
None
-
None
Description
Hi,
I am trying to implement the GremlinPlugin for a tp3 implementation.
The step :install org.umlg sqlg-hsqldb 0.0.2-SNAPSHOT works fine and I can see it in the ext folder.
(Some issues there in that somehow it kept on loading a old version of the jar. I had to bump my version from 0.0.1 to 0.0.2 before it got the correct jars)
However once it had the correct jar, the plugin does not become available in the :plugin list
Debugging a bit it seems to me that ServiceLoader.load(GremlinPlugin.class, groovy.getInterp().getClassLoader()) does not see my plugin class.
The class follows the neo4j example.
public class SqlgHsqldbGremlinPlugin implements GremlinPlugin { private static final String IMPORT = "import "; private static final String DOT_STAR = ".*"; private static final Set<String> IMPORTS = new HashSet<String>() {{ add(IMPORT + SqlgGraph.class.getPackage().getName() + DOT_STAR); }}; @Override public String getName() { return "tinkerpop.sqlg.hsqldb"; } @Override public void pluginTo(final PluginAcceptor pluginAcceptor) { pluginAcceptor.addImports(IMPORTS); } }
Any pointers as to what I am doing wrong?
Following on a discussion on the mailling list I am adding -Xverify:none to the gremlin.sh script.