Hitachi Content Platform​

 Building Stage with 3rd Party Dependencies included

  • Object Storage
  • Hitachi Content Intelligence HCI
Clifford Grimm's profile image
Clifford Grimm posted 10-02-2019 22:25

 

I am developing a stage plugin that requires a 3rd party library (PostgreSQL JDBC). I have developed the state in Eclipse and run it from there, but having trouble getting the driver to be noticed when running from plugin-test and I suspect will also be an issue once I get to the point of using in HCI.

 

I created the jar in Eclipse as a runnable jar and included the dependent jars. When I look at the resulting JAR, the libraries are there at the top level of the jar. However, when trying to establish the connection, the failure is that it can't find a suitable driver.

 

Any hints how to create a plugin jar with all the dependencies?


#HitachiContentIntelligenceHCI
Clifford Grimm's profile image
Clifford Grimm

Despite online resources saying that you can just include a JAR file and describe it in a manifest, this does not work with HCI. Instead, I had to un-jar the classes in the dependent Jars and then jar them up with the plugin classes. A bit painful and manual, but does work.