Search code examples
schemacrawler

Schemacrawler in OSGi bundle


I'm really new to Schemacrawler and I need a little help. I want to use Schemacrawler as OSGi bundle in my project. However I'm not sure how to do it. In the Readme, it says that "The SchemaCrawler jar file is bundled as an OSGi bundle". But there are a lot of schemacrawlers jars in the Maven repo. Which one should I use?

Another question is, I tried to import only the schemacrawler jar into my project, and did a little test with sqlite. It did work nicely, however I'm wondering do I need to include all other the database specific jars (e.g schemacrawler-sqlite) as well? What are they for actually? thanks!


Solution

  • Eli,

    Here is a resource on OSGi in Java: OSGi Modularity - Tutorial. You should use the latest version of the main SchemaCrawler jar. If you are using SQLite, you should also use the corrsponding version of SchemaCrawler for SQlite jar. The SchemaCrawler for SQlite jar provides additional functionality specifically for SQLite.

    Sualeh Fatehi, SchemaCrawler