拓恒统一认证授权服务
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.

248 lines
8.0KB

  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.5.1</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. </dependencies>
  117. <!-- 构建环境变量 -->
  118. <profiles>
  119. <!-- 本地开发环境 -->
  120. <profile>
  121. <id>local</id>
  122. <properties>
  123. <package.environment>local</package.environment>
  124. </properties>
  125. <activation>
  126. <activeByDefault>true</activeByDefault>
  127. </activation>
  128. </profile>
  129. <!-- 开发环境 -->
  130. <profile>
  131. <id>dev</id>
  132. <properties>
  133. <package.environment>dev</package.environment>
  134. </properties>
  135. </profile>
  136. <!-- 测试环境 -->
  137. <profile>
  138. <id>test</id>
  139. <properties>
  140. <package.environment>test</package.environment>
  141. </properties>
  142. </profile>
  143. <!-- 生产环境 -->
  144. <profile>
  145. <id>prod</id>
  146. <properties>
  147. <package.environment>prod</package.environment>
  148. </properties>
  149. </profile>
  150. </profiles>
  151. <!-- 环境变量构建 -->
  152. <build>
  153. <finalName>tuoheng_oidc_admin</finalName>
  154. <resources>
  155. <resource>
  156. <directory>src/main/resources</directory>
  157. <filtering>true</filtering>
  158. </resource>
  159. <resource>
  160. <directory>src/main/java</directory>
  161. <includes>
  162. <include>**/*.*</include>
  163. </includes>
  164. <excludes>
  165. <exclude>**/*.java</exclude>
  166. </excludes>
  167. </resource>
  168. <resource>
  169. <directory>src/main/resources</directory>
  170. <filtering>true</filtering>
  171. <targetPath>WEB-INF/classes</targetPath>
  172. <includes>
  173. <include>application-${package.environment}.yml</include>
  174. </includes>
  175. </resource>
  176. </resources>
  177. <pluginManagement>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-resources-plugin</artifactId>
  182. <configuration>
  183. <delimiters>@</delimiters>
  184. <useDefaultDelimiters>false</useDefaultDelimiters>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-maven-plugin</artifactId>
  190. <version>2.1.11.RELEASE</version>
  191. <configuration>
  192. <finalName>${project.build.finalName}</finalName>
  193. </configuration>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>repackage</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </pluginManagement>
  204. <plugins>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-resources-plugin</artifactId>
  208. <version>3.1.0</version>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.springframework.boot</groupId>
  212. <artifactId>spring-boot-maven-plugin</artifactId>
  213. <executions>
  214. <execution>
  215. <goals>
  216. <goal>repackage</goal>
  217. </goals>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. </plugins>
  222. </build>
  223. </project>