拓恒统一认证授权服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

264 lines
8.6KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.tuoheng</groupId>
  7. <artifactId>tuoheng_oidc</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <groupId>com.tuoheng</groupId>
  11. <artifactId>tuoheng_oidc_admin</artifactId>
  12. <version>1.0.0</version>
  13. <name>tuoheng_oidc_admin</name>
  14. <description>tuoheng_oidc_admin</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-test</artifactId>
  30. <scope>test</scope>
  31. </dependency>
  32. <!--任务调度-->
  33. <dependency>
  34. <groupId>com.xuxueli</groupId>
  35. <artifactId>xxl-job-core</artifactId>
  36. <version>2.3.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.drewnoakes</groupId>
  40. <artifactId>metadata-extractor</artifactId>
  41. <version>2.6.2</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.baomidou</groupId>
  45. <artifactId>mybatis-plus-boot-starter</artifactId>
  46. <version>3.3.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>cn.hutool</groupId>
  50. <artifactId>hutool-all</artifactId>
  51. <version>5.1.0</version>
  52. </dependency>
  53. <!-- 数据库 -->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-jdbc</artifactId>
  57. </dependency>
  58. <!--分页插件-->
  59. <dependency>
  60. <groupId>com.github.pagehelper</groupId>
  61. <artifactId>pagehelper-spring-boot-starter</artifactId>
  62. <version>1.4.1</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>mysql</groupId>
  66. <artifactId>mysql-connector-java</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-data-redis</artifactId>
  71. </dependency>
  72. <!--MyBatis整合SpringBoot框架的起步依赖-->
  73. <dependency>
  74. <groupId>org.mybatis.spring.boot</groupId>
  75. <artifactId>mybatis-spring-boot-starter</artifactId>
  76. <version>2.2.1</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <version>1.18.22</version>
  82. </dependency>
  83. <!-- 数据连接池 -->
  84. <dependency>
  85. <groupId>com.alibaba</groupId>
  86. <artifactId>druid-spring-boot-starter</artifactId>
  87. <version>1.2.9</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-validation</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>io.jsonwebtoken</groupId>
  99. <artifactId>jjwt</artifactId>
  100. <version>0.9.0</version>
  101. </dependency>
  102. <!-- JSON 解析器和生成器 -->
  103. <dependency>
  104. <groupId>com.alibaba</groupId>
  105. <artifactId>fastjson</artifactId>
  106. <version>1.2.76</version>
  107. </dependency>
  108. <!-- SpringCloud依赖 -->
  109. <dependency>
  110. <groupId>org.springframework.cloud</groupId>
  111. <artifactId>spring-cloud-dependencies</artifactId>
  112. <version>2021.0.3</version>
  113. <type>pom</type>
  114. <scope>import</scope>
  115. </dependency>
  116. <!-- Consul注册中心起始依赖 -->
  117. <dependency>
  118. <groupId>org.springframework.cloud</groupId>
  119. <artifactId>spring-cloud-starter-consul-discovery</artifactId>
  120. <version>3.1.1</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>junit</groupId>
  124. <artifactId>junit</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.baomidou</groupId>
  129. <artifactId>mybatis-plus-extension</artifactId>
  130. <version>3.3.0</version>
  131. </dependency>
  132. </dependencies>
  133. <!-- 构建环境变量 -->
  134. <profiles>
  135. <!-- 本地开发环境 -->
  136. <profile>
  137. <id>local</id>
  138. <properties>
  139. <package.environment>local</package.environment>
  140. </properties>
  141. <activation>
  142. <activeByDefault>true</activeByDefault>
  143. </activation>
  144. </profile>
  145. <!-- 开发环境 -->
  146. <profile>
  147. <id>dev</id>
  148. <properties>
  149. <package.environment>dev</package.environment>
  150. </properties>
  151. </profile>
  152. <!-- 测试环境 -->
  153. <profile>
  154. <id>test</id>
  155. <properties>
  156. <package.environment>test</package.environment>
  157. </properties>
  158. </profile>
  159. <!-- 生产环境 -->
  160. <profile>
  161. <id>prod</id>
  162. <properties>
  163. <package.environment>prod</package.environment>
  164. </properties>
  165. </profile>
  166. </profiles>
  167. <!-- 环境变量构建 -->
  168. <build>
  169. <finalName>tuoheng_oidc_admin</finalName>
  170. <resources>
  171. <resource>
  172. <directory>src/main/resources</directory>
  173. <filtering>true</filtering>
  174. </resource>
  175. <resource>
  176. <directory>src/main/java</directory>
  177. <includes>
  178. <include>**/*.*</include>
  179. </includes>
  180. <excludes>
  181. <exclude>**/*.java</exclude>
  182. </excludes>
  183. </resource>
  184. <resource>
  185. <directory>src/main/resources</directory>
  186. <filtering>true</filtering>
  187. <targetPath>WEB-INF/classes</targetPath>
  188. <includes>
  189. <include>application-${package.environment}.yml</include>
  190. </includes>
  191. </resource>
  192. </resources>
  193. <pluginManagement>
  194. <plugins>
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-resources-plugin</artifactId>
  198. <configuration>
  199. <delimiters>@</delimiters>
  200. <useDefaultDelimiters>false</useDefaultDelimiters>
  201. </configuration>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.springframework.boot</groupId>
  205. <artifactId>spring-boot-maven-plugin</artifactId>
  206. <version>2.1.11.RELEASE</version>
  207. <configuration>
  208. <finalName>${project.build.finalName}</finalName>
  209. </configuration>
  210. <executions>
  211. <execution>
  212. <goals>
  213. <goal>repackage</goal>
  214. </goals>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. </plugins>
  219. </pluginManagement>
  220. <plugins>
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-resources-plugin</artifactId>
  224. <version>3.1.0</version>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.springframework.boot</groupId>
  228. <artifactId>spring-boot-maven-plugin</artifactId>
  229. <executions>
  230. <execution>
  231. <goals>
  232. <goal>repackage</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. </plugins>
  238. </build>
  239. </project>