我目前正在使用mybatis生成java文件。问题是我需要本机库才能访问我的数据库。我如何使用当前插件处理此问题?
这是我的pom的样子:
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>package.needs.native</groupId>
<artifactId>needs-native</artifactId>
<version>1.2.3</version>
</dependency>
</dependencies>
</plugin>