ibit-mybatis-generator-maven-plugin

ibit-mybatis generator maven plugin

License

License

Categories

Categories

Maven Build Tools MyBatis Data ORM
GroupId

GroupId

tech.ibit
ArtifactId

ArtifactId

ibit-mybatis-generator-maven-plugin
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

ibit-mybatis-generator-maven-plugin
ibit-mybatis generator maven plugin
Project URL

Project URL

http://maven.apache.org
Project Organization

Project Organization

IBIT程序猿
Source Code Management

Source Code Management

https://github.com/ibit-tech/ibit-mybatis-generator-maven-plugin

Download ibit-mybatis-generator-maven-plugin

How to add to project

<plugin>
    <groupId>tech.ibit</groupId>
    <artifactId>ibit-mybatis-generator-maven-plugin</artifactId>
    <version>1.0</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
tech.ibit : ibit-mybatis-generator jar 2.1

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3

Project Modules

There are no modules declared in this project.

ibit-mybatis-generator-maven-plugin 说明

maven 引入

<!--代码生成-->
<plugin>
    <artifactId>ibit-mybatis-generator-maven-plugin</artifactId>
    <groupId>tech.ibit</groupId>
    <version>1.0</version>
    <configuration>
        <!--相关配置-->
    </configuration>
</plugin>

指定的 ibit-mybatis 2.1+。

支持 generategenerate-with-config

  • generate 在 <configuration> 中配置参数
  • generate-with-config 则使用 <configFile> 指定配置文件,在配置文件中进行配置

相关配置说明

名称 说明 是否必填 默认值
configFile 配置文件(用于 generate-with-config) /
driverName jdbc 驱动类 /
jdbcUrl jdbc url /
username 数据库用户 /
password 数据库密码 /
defaultProjectDir 默认项目文件夹 ${project.basedir}
defaultBasePackage 默认包路径 空串
entityProjectDir entity 项目文件夹 ${defaultProjectDir}
entityBasePackage entity 基础包路径 ${defaultBasePackage}
mapperProjectDir mapper 项目文件夹 ${defaultProjectDir}
mapperBasePackage mapper 基础包路径 ${defaultBasePackage}
author 作者 空串
withAll 是否生成全部(entity + mapper) false
withEntity 是否生成 entity false
withMapper 是否生成 mapper false
override 是否覆盖已有文件 false
tables 表名,多个用","分割 /

Versions

Version
1.0