拓恒统一认证授权服务
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

252 rindas
8.2KB

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