2022-03-01 15:02:03 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<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.cxyxiaomo.flashsale</groupId>
|
|
|
|
|
<artifactId>flashsale</artifactId>
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
|
|
|
|
<name>flashsale</name>
|
|
|
|
|
<url>http://www.cxyxiaomo.com/</url>
|
|
|
|
|
|
|
|
|
|
<!--引入SpringBoot-->
|
|
|
|
|
<parent>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<version>2.1.2.RELEASE</version>
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<maven.compiler.source>1.7</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>1.7</maven.compiler.target>
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
|
<version>4.13.2</version>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--引入SpringBoot-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--MySQL依赖-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<version>5.1.49</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--连接池(用于管理MySQL连接)-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>druid</artifactId>
|
|
|
|
|
<version>1.2.8</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--MyBatis对SpringBoot的支持文件-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
|
<!--<version>1.3.2</version>-->
|
|
|
|
|
<version>2.2.2</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2022-03-01 22:03:09 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
|
<version>3.7</version>
|
|
|
|
|
</dependency>
|
2022-03-02 22:24:19 +08:00
|
|
|
|
|
|
|
|
|
<!--参数验证-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
|
|
<artifactId>hibernate-validator</artifactId>
|
|
|
|
|
<version>5.4.3.Final</version>
|
|
|
|
|
</dependency>
|
2022-03-05 12:40:41 +08:00
|
|
|
|
|
|
|
|
|
<!--日期时间-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>joda-time</groupId>
|
|
|
|
|
<artifactId>joda-time</artifactId>
|
|
|
|
|
<version>2.9.1</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2022-03-01 15:02:03 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
|
|
|
|
<plugins>
|
|
|
|
|
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
<version>3.0.2</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<version>3.8.0</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<version>2.22.1</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
<version>3.0.2</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
|
|
|
<version>2.5.2</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
|
<version>2.8.2</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
|
|
|
<version>3.7.1</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
|
|
|
<version>3.0.0</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!--自动生成数据库的映射-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
|
|
<version>1.3.5</version>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
|
|
<artifactId>mybatis-generator-core</artifactId>
|
|
|
|
|
<version>1.3.5</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<version>5.1.49</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
<executions>
|
|
|
|
|
<!--在package阶段做generate-->
|
|
|
|
|
<execution>
|
|
|
|
|
<id>mybatis generator</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>generate</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
|
|
<!--考虑到项目反复生成-->
|
|
|
|
|
<configuration>
|
|
|
|
|
<!--允许移动生成的文件-->
|
|
|
|
|
<verbose>true</verbose>
|
2022-03-03 13:01:50 +08:00
|
|
|
|
<!--不允许自动覆盖文件(真正企业开发不要设置成true)-->
|
|
|
|
|
<overwrite>false</overwrite>
|
2022-03-01 15:02:03 +08:00
|
|
|
|
<!--mybatis配置文件路径-->
|
|
|
|
|
<configurationFile>
|
|
|
|
|
src/main/resources/mybatis-generator.xml
|
|
|
|
|
</configurationFile>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</pluginManagement>
|
2022-03-02 22:24:19 +08:00
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>8</source>
|
|
|
|
|
<target>8</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
2022-03-01 15:02:03 +08:00
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
解决在使用mybatis generate自动生成时出现以下问题
|
|
|
|
|
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
|
|
|
|
|
下载项目: https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin
|
|
|
|
|
解压,进入pom文件所在目录,执行mvn clean install,然后就可以删掉这个下载的项目了
|
|
|
|
|
如果MavenRepo文件夹中:org\eclipse\m2e\lifecycle-mapping\1.0.0中含有_remote.repositories文件 和 xx.lastUpdated文件就删掉
|
|
|
|
|
|
|
|
|
|
see: https://stackoverflow.com/questions/7905501/get-rid-of-pom-not-found-warning-for-org-eclipse-m2elifecycle-mapping/
|
|
|
|
|
-->
|
|
|
|
|
</project>
|