SchemaCrawler 数据库插件应该在 CLASSPATH 上

SchemaCrawler database plugin should be on the CLASSPATH

我必须使用 schemacrawler 获取数据库的元数据。

根据 https://www.schemacrawler.com/ where I have found example https://github-com.translate.goog/schemacrawler/SchemaCrawler/blob/master/schemacrawler-examplecode/src/main/java/com/example/ApiExample.java?_x_tr_sl=en&_x_tr_tl=ru&_x_tr_hl=ru&_x_tr_pto=op,sc ,我试图 运行 它但出现错误 SchemaCrawler database plugin should be on the CLASSPATH for <jdbc:postgresql://localhost:5433/table_accounts>, or "SC_WITHOUT_DATABASE_PLUGIN" should be set to the name of the missing plugin either as an environmental variable or as a Java system property.

尚未找到任何解决方案。

我的 pom.xml 与 github 中的示例相同。

我试图在 Mac Os 上将 export SC_WITHOUT_DATABASE_PLUGIN=true 添加到 .bash_profile,但出现错误。

您可以设置export SC_WITHOUT_DATABASE_PLUGIN=postgresql,但请添加schemacrawler-postgresql to your Maven build instead, like the code in the example "pom.xml"

Sualeh Fatehi,SchemaCrawler