1 Star 0 Fork 120

Elsieiie / mybatisplus-maven-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pom.xml 8.00 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2016-11-17 11:22 . add remove tablePrefix
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baomidou</groupId>
<artifactId>mybatisplus-maven-plugin</artifactId>
<version>1.0</version>
<packaging>maven-plugin</packaging>
<name>mybatisplus-maven-plugin Maven Plugin</name>
<url>https://github.com/baomidou/mybatisplus-maven-plugin</url>
<developers>
<developer>
<name>YangHu</name>
<email>althyman@gmail.com</email>
<organization>baomidou</organization>
</developer>
</developers>
<description>Mybatis-Plus Code Generator</description>
<scm>
<connection>scm:git:git@git.oschina.net/baomidou/mybatisplus-maven-plugin.git</connection>
<developerConnection>scm:git:git@git.oschina.net/baomidou/mybatisplus-maven-plugin.git</developerConnection>
<url>git@git.oschina.net/baomidou/mybatisplus-maven-plugin.git</url>
</scm>
<licenses>
<license>
<name>Apache License Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gpg.keyname>F4B46FB9</gpg.keyname>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.8</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.38</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<includes>
<include>**/*.vm</include>
</includes>
<targetPath>${project.build.outputDirectory}</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.2</version>
<configuration>
<goalPrefix>mp</goalPrefix>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>generated-helpmojo</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.baomidou</groupId>
<artifactId>mybatisplus-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<!-- 输出目录(默认java.io.tmpdir) -->
<outputDir>C:\Users\Administrator\Desktop\mytest</outputDir>
<!-- 是否覆盖同名文件(默认false) -->
<fileOverride>true</fileOverride>
<!-- 是否打开输出目录(默认true) -->
<open>true</open>
<!-- mapper.xml 中添加二级缓存配置(默认true) -->
<enableCache>false</enableCache>
<!-- 开发者名称 -->
<author>tangguo</author>
<!-- 是否开启 ActiveRecord 模式(默认true) -->
<activeRecord>false</activeRecord>
<!-- 数据源配置,( **必配** ) -->
<!-- <dataSource> -->
<!-- <driverName>oracle.jdbc.driver.OracleDriver</driverName> -->
<!-- <url>jdbc:oracle:thin:@localhost:1521:orcl</url> -->
<!-- <username>etu_dsjx3</username> -->
<!-- <password>etu_dsjx3</password> -->
<!-- </dataSource> -->
<dataSource>
<driverName>com.mysql.jdbc.Driver</driverName>
<url>jdbc:mysql://localhost:3306/mybatis-plus</url>
<username>root</username>
<password>521</password>
</dataSource>
<strategy>
<!-- 字段生成策略,四种类型,从名称就能看出来含义:
nochange(默认),
underline_to_camel,(下划线转驼峰)
remove_prefix,(去除第一个下划线的前部分,后面保持不变)
remove_prefix_and_camel(去除第一个下划线的前部分,后面转驼峰) -->
<naming>remove_prefix_and_camel</naming>
<!-- 表前缀 -->
<tablePrefix>bmd_</tablePrefix>
<!--Entity中的ID生成策略(默认 id_worker) -->
<idGenType>uuid</idGenType>
<!--自定义超类 -->
<!--<superServiceClass>com.baomidou.base.BaseService</superServiceClass> -->
<!-- 要包含的表 与 exclude 二选一配置 -->
<!--<include> -->
<!--<property>sec_user</property> -->
<!--<property>table1</property> -->
<!--</include> -->
<!-- 要排除的表 -->
<!--<exclude> -->
<!--<property>schema_version</property> -->
<!--</exclude> -->
</strategy>
<packageInfo>
<!-- 父级包名称,如果不写,下面的service等就需要写全包名(默认com.baomidou) -->
<parent>com.baomidou</parent>
<!--service包名(默认service) -->
<service>service</service>
<!--serviceImpl包名(默认service.impl) -->
<serviceImpl>service.impl</serviceImpl>
<!--entity包名(默认entity) -->
<entity>entity</entity>
<!--mapper包名(默认mapper) -->
<mapper>mapper</mapper>
<!--xml包名(默认mapper.xml) -->
<xml>mapper.xml</xml>
</packageInfo>
<template>
<!-- <controller>/template/controller.java.vm</controller> -->
</template>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.38</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>com.oracle</groupId> -->
<!-- <artifactId>ojdbc14</artifactId> -->
<!-- <version>10.2.0.5.0</version> -->
<!-- </dependency> -->
</dependencies>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<!-- GPG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- skipJunitTest -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>oss</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>
Java
1
https://gitee.com/Elsieiie/mybatisplus-maven-plugin.git
git@gitee.com:Elsieiie/mybatisplus-maven-plugin.git
Elsieiie
mybatisplus-maven-plugin
mybatisplus-maven-plugin
master

搜索帮助