198 lines
6.5 KiB
XML
198 lines
6.5 KiB
XML
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>2.5.6</version>
|
||
<relativePath/> <!-- lookup parent from repository -->
|
||
</parent>
|
||
<groupId>com.rabbiter</groupId>
|
||
<artifactId>ElectronicMallApi</artifactId>
|
||
<version>1.0</version>
|
||
<name>ElectronicMallApi</name>
|
||
<description>ElectronicMallApi</description>
|
||
<packaging>jar</packaging>
|
||
<properties>
|
||
<java.version>1.8</java.version>
|
||
</properties>
|
||
|
||
|
||
<profiles>
|
||
<!--开发环境-->
|
||
<profile>
|
||
<id>dev</id>
|
||
<properties>
|
||
<profile>dev</profile>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<!--测试环境-->
|
||
<profile>
|
||
<id>test</id>
|
||
<properties>
|
||
<profile>test</profile>
|
||
</properties>
|
||
</profile>
|
||
<!--生产环境-->
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<profile>prod</profile>
|
||
</properties>
|
||
</profile>
|
||
</profiles>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
|
||
<configuration>
|
||
<mainClass>com.rabbiter.em.ElectronicMallApplication</mainClass> <!-- 指定主类 -->
|
||
<arguments>
|
||
<argument>-XDignore.symbol.file</argument>
|
||
</arguments>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
<resources>
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
<includes>
|
||
<!--指定打包的配置文件,且用filtering设置开启过滤-->
|
||
<include>application*.yml</include><!--这里使用占位符进行动态引用以确定具体的打包文件-->
|
||
<include>application.yml</include><!--主配置文件必须打包-->
|
||
<include>**/*.xml</include> <!-- 包含所有 XML -->
|
||
</includes>
|
||
<filtering>true</filtering><!--开启过滤,在打包时application.yml中配置的@env@将被确定到底是什么变量-->
|
||
</resource>
|
||
</resources>
|
||
</build>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>2.2.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<!-- 数据连接池 druid-->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid</artifactId>
|
||
<version>1.2.2</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-compress -->
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-compress</artifactId>
|
||
<version>1.21</version>
|
||
</dependency>
|
||
|
||
<!-- mybatis-plus-->
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||
<version>3.5.1</version>
|
||
</dependency>
|
||
<!--swagger-->
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger2</artifactId>
|
||
<version>2.9.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger-ui</artifactId>
|
||
<version>2.9.2</version>
|
||
</dependency>
|
||
<!-- jwt-->
|
||
<dependency>
|
||
<groupId>com.auth0</groupId>
|
||
<artifactId>java-jwt</artifactId>
|
||
<version>3.10.3</version>
|
||
</dependency>
|
||
|
||
<!-- hutool-->
|
||
<!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
<version>5.7.21</version>
|
||
</dependency>
|
||
<!-- fastJson-->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.73</version>
|
||
</dependency>
|
||
<!--redis-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-pool2</artifactId>
|
||
<version>2.9.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.sun.xml.fastinfoset</groupId>
|
||
<artifactId>FastInfoset</artifactId>
|
||
<version>1.2.18</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<repositories>
|
||
<repository>
|
||
<id>public</id>
|
||
<name>aliyun nexus</name>
|
||
<url>https://maven.aliyun.com/repository/public/</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>public</id>
|
||
<name>aliyun nexus</name>
|
||
<url>https://maven.aliyun.com/repository/public/</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>false</enabled>
|
||
</snapshots>
|
||
</pluginRepository>
|
||
</pluginRepositories>
|
||
|
||
</project>
|