pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.5.9</version>
  10. <relativePath></relativePath>
  11. </parent>
  12. <groupId>com.shunt</groupId>
  13. <artifactId>shunt-api</artifactId>
  14. <name>shunt-api</name>
  15. <url>http://maven.apache.org</url>
  16. <description>学生端的入口</description>
  17. <profiles>
  18. <profile>
  19. <id>dev</id>
  20. <properties>
  21. <env>dev</env>
  22. </properties>
  23. <activation>
  24. <activeByDefault>true</activeByDefault>
  25. </activation>
  26. </profile>
  27. <profile>
  28. <id>prod</id>
  29. <properties>
  30. <env>prod</env>
  31. </properties>
  32. </profile>
  33. </profiles>
  34. <!-- 依赖仓库 设置从aliyun仓库下载-->
  35. <repositories>
  36. <repository>
  37. <id>alimaven</id>
  38. <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
  39. <snapshots>
  40. <enabled>true</enabled>
  41. </snapshots>
  42. <releases>
  43. <enabled>true</enabled>
  44. </releases>
  45. </repository>
  46. </repositories>
  47. <!-- 插件依赖仓库 -->
  48. <pluginRepositories>
  49. <pluginRepository>
  50. <id>alimaven</id>
  51. <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
  52. <snapshots>
  53. <enabled>true</enabled>
  54. </snapshots>
  55. <releases>
  56. <enabled>true</enabled>
  57. </releases>
  58. </pluginRepository>
  59. </pluginRepositories>
  60. <properties>
  61. <!-- 文件拷贝时的编码 -->
  62. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  63. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  64. <!-- 编译时的编码 -->
  65. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  66. </properties>
  67. <dependencies>
  68. <dependency>
  69. <groupId>junit</groupId>
  70. <artifactId>junit</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-web</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework</groupId>
  79. <artifactId>spring-context-support</artifactId>
  80. </dependency>
  81. <!-- SpringWeb模块 -->
  82. <dependency>
  83. <groupId>org.springframework</groupId>
  84. <artifactId>spring-web</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter-test</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.github.xiaoymin</groupId>
  92. <artifactId>knife4j-spring-boot-starter</artifactId>
  93. <version>2.0.4</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.projectlombok</groupId>
  97. <artifactId>lombok</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>javax.validation</groupId>
  101. <artifactId>validation-api</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>mysql</groupId>
  105. <artifactId>mysql-connector-java</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.alibaba</groupId>
  109. <artifactId>fastjson</artifactId>
  110. <version>1.2.79</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.alibaba</groupId>
  114. <artifactId>druid-spring-boot-starter</artifactId>
  115. <version>1.2.8</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.mybatis.spring.boot</groupId>
  119. <artifactId>mybatis-spring-boot-starter</artifactId>
  120. <version>2.2.0</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>io.jsonwebtoken</groupId>
  124. <artifactId>jjwt</artifactId>
  125. <version>0.9.1</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-starter-aop</artifactId>
  130. </dependency>
  131. <!-- 职业分流模块-->
  132. <dependency>
  133. <groupId>com.admin</groupId>
  134. <artifactId>admin-major</artifactId>
  135. <version>3.8.1</version>
  136. <exclusions>
  137. <!-- 与 knife4j 冲突-->
  138. <exclusion>
  139. <artifactId>easypoi-base</artifactId>
  140. <groupId>cn.afterturn</groupId>
  141. </exclusion>
  142. </exclusions>
  143. </dependency>
  144. </dependencies>
  145. <build>
  146. <resources>
  147. <resource>
  148. <directory>src/main/resources/</directory>
  149. <!--打包时先排除掉文件夹-->
  150. <excludes>
  151. <!-- <exclude>sit/*</exclude>-->
  152. <exclude>prod/*</exclude>
  153. <!-- <exclude>test/*</exclude>-->
  154. <exclude>dev/*</exclude>
  155. </excludes>
  156. <includes>
  157. <!--如果有其他定义通用文件,需要包含进来-->
  158. <!--<include>messages/*</include>-->
  159. </includes>
  160. </resource>
  161. <resource>
  162. <!--根据不同的环境,把对应文件夹里的配置文件打包-->
  163. <directory>src/main/resources/${env}</directory>
  164. </resource>
  165. </resources>
  166. <plugins>
  167. <plugin>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-maven-plugin</artifactId>
  170. <version>2.1.1.RELEASE</version>
  171. <configuration>
  172. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  173. </configuration>
  174. <executions>
  175. <execution>
  176. <goals>
  177. <goal>repackage</goal>
  178. </goals>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. <!-- <plugin>-->
  183. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  184. <!-- <artifactId>maven-war-plugin</artifactId>-->
  185. <!-- <version>3.1.0</version>-->
  186. <!-- <configuration>-->
  187. <!-- <failOnMissingWebXml>false</failOnMissingWebXml>-->
  188. <!-- <warName>${project.artifactId}</warName>-->
  189. <!-- </configuration>-->
  190. <!-- </plugin>-->
  191. </plugins>
  192. <finalName>${project.artifactId}</finalName>
  193. </build>
  194. </project>