schemacrawler maven
时间: 2023-06-22 08:33:58 浏览: 179
您可以通过以下步骤将 SchemaCrawler 添加到 Maven 项目中:
1. 在 pom.xml 文件中添加以下依赖项:
```xml
<dependency>
<groupId>su.nlq</groupId>
<artifactId>schemacrawler</artifactId>
<version>{version}</version>
</dependency>
```
其中 `{version}` 是您想要使用的 SchemaCrawler 版本号。
2. 如果您需要使用 SchemaCrawler 的可执行文件,请添加以下插件:
```xml
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>schemacrawler.Main</mainClass>
<arguments>
<argument>-info</argument>
<argument>-url=jdbc:h2:mem:testdb</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
```
其中 `argument` 标签中的内容是您想要执行的 SchemaCrawler 命令和参数。
3. 运行以下命令以构建和安装您的项目:
```
mvn clean install
```
现在您已经成功地将 SchemaCrawler 添加到了您的 Maven 项目中。
阅读全文
相关推荐














