123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?xml version="1.0"?>
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.5.9</version>
- <relativePath></relativePath>
- </parent>
- <groupId>com.shunt</groupId>
- <artifactId>shunt-api</artifactId>
- <name>shunt-api</name>
- <url>http://maven.apache.org</url>
- <description>学生端的入口</description>
- <profiles>
- <profile>
- <id>dev</id>
- <properties>
- <env>dev</env>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- <profile>
- <id>prod</id>
- <properties>
- <env>prod</env>
- </properties>
- </profile>
- </profiles>
- <!-- 依赖仓库 设置从aliyun仓库下载-->
- <repositories>
- <repository>
- <id>alimaven</id>
- <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- </repositories>
- <!-- 插件依赖仓库 -->
- <pluginRepositories>
- <pluginRepository>
- <id>alimaven</id>
- <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </pluginRepository>
- </pluginRepositories>
- <properties>
- <!-- 文件拷贝时的编码 -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <!-- 编译时的编码 -->
- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
- </properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context-support</artifactId>
- </dependency>
- <!-- SpringWeb模块 -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- </dependency>
- <dependency>
- <groupId>com.github.xiaoymin</groupId>
- <artifactId>knife4j-spring-boot-starter</artifactId>
- <version>2.0.4</version>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.79</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>1.2.8</version>
- </dependency>
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>2.2.0</version>
- </dependency>
- <dependency>
- <groupId>io.jsonwebtoken</groupId>
- <artifactId>jjwt</artifactId>
- <version>0.9.1</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-aop</artifactId>
- </dependency>
- <!-- 职业分流模块-->
- <dependency>
- <groupId>com.admin</groupId>
- <artifactId>admin-major</artifactId>
- <version>3.8.1</version>
- <exclusions>
- <!-- 与 knife4j 冲突-->
- <exclusion>
- <artifactId>easypoi-base</artifactId>
- <groupId>cn.afterturn</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <directory>src/main/resources/</directory>
- <!--打包时先排除掉文件夹-->
- <excludes>
- <!-- <exclude>sit/*</exclude>-->
- <exclude>prod/*</exclude>
- <!-- <exclude>test/*</exclude>-->
- <exclude>dev/*</exclude>
- </excludes>
- <includes>
- <!--如果有其他定义通用文件,需要包含进来-->
- <!--<include>messages/*</include>-->
- </includes>
- </resource>
- <resource>
- <!--根据不同的环境,把对应文件夹里的配置文件打包-->
- <directory>src/main/resources/${env}</directory>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>2.1.1.RELEASE</version>
- <configuration>
- <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- <plugin>-->
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
- <!-- <artifactId>maven-war-plugin</artifactId>-->
- <!-- <version>3.1.0</version>-->
- <!-- <configuration>-->
- <!-- <failOnMissingWebXml>false</failOnMissingWebXml>-->
- <!-- <warName>${project.artifactId}</warName>-->
- <!-- </configuration>-->
- <!-- </plugin>-->
- </plugins>
- <finalName>${project.artifactId}</finalName>
- </build>
- </project>
|