schemacrawler maven
时间: 2023-06-22 18:33:58 浏览: 56
您可以通过以下步骤将 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 项目中。
相关推荐
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)