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

191 lines
6.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_server</artifactId>
  12. <version>1.0.0</version>
  13. <name>tuoheng_oidc_server</name>
  14. <description>tuoheng_oidc_server</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-test</artifactId>
  26. <scope>test</scope>
  27. </dependency>
  28. <!--spring-authorization-server依赖-->
  29. <dependency>
  30. <groupId>org.springframework.security</groupId>
  31. <artifactId>spring-security-oauth2-authorization-server</artifactId>
  32. <version>0.3.1</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. <version>2.6.7</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-security</artifactId>
  42. <version>2.6.7</version>
  43. </dependency>
  44. <!-- 数据库 -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-jdbc</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>mysql</groupId>
  51. <artifactId>mysql-connector-java</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-data-redis</artifactId>
  56. </dependency>
  57. <!--MyBatis整合SpringBoot框架的起步依赖-->
  58. <dependency>
  59. <groupId>org.mybatis.spring.boot</groupId>
  60. <artifactId>mybatis-spring-boot-starter</artifactId>
  61. <version>2.2.1</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.projectlombok</groupId>
  65. <artifactId>lombok</artifactId>
  66. <version>1.18.22</version>
  67. </dependency>
  68. <!-- 数据连接池 -->
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>druid-spring-boot-starter</artifactId>
  72. <version>1.2.9</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-validation</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.jsonwebtoken</groupId>
  84. <artifactId>jjwt</artifactId>
  85. <version>0.9.0</version>
  86. </dependency>
  87. <!-- JSON 解析器和生成器 -->
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>fastjson</artifactId>
  91. <version>1.2.76</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.httpcomponents</groupId>
  95. <artifactId>httpclient</artifactId>
  96. </dependency>
  97. </dependencies>
  98. <!-- 构建环境变量 -->
  99. <profiles>
  100. <!-- 本地开发环境 -->
  101. <profile>
  102. <id>local</id>
  103. <properties>
  104. <package.environment>local</package.environment>
  105. </properties>
  106. <activation>
  107. <activeByDefault>true</activeByDefault>
  108. </activation>
  109. </profile>
  110. <!-- 开发环境 -->
  111. <profile>
  112. <id>dev</id>
  113. <properties>
  114. <package.environment>dev</package.environment>
  115. </properties>
  116. </profile>
  117. <!-- 测试环境 -->
  118. <profile>
  119. <id>test</id>
  120. <properties>
  121. <package.environment>test</package.environment>
  122. </properties>
  123. </profile>
  124. <!-- 生产环境 -->
  125. <profile>
  126. <id>prod</id>
  127. <properties>
  128. <package.environment>prod</package.environment>
  129. </properties>
  130. </profile>
  131. </profiles>
  132. <!-- 环境变量构建 -->
  133. <build>
  134. <finalName>tuoheng_oidc_server</finalName>
  135. <resources>
  136. <resource>
  137. <directory>src/main/resources</directory>
  138. <filtering>true</filtering>
  139. <includes>
  140. <include>**/*.*</include>
  141. </includes>
  142. </resource>
  143. <resource>
  144. <directory>src/main/java</directory>
  145. <includes>
  146. <include>**/*.*</include>
  147. </includes>
  148. <excludes>
  149. <exclude>**/*.java</exclude>
  150. </excludes>
  151. </resource>
  152. <resource>
  153. <directory>src/main/resources</directory>
  154. <filtering>true</filtering>
  155. <targetPath>WEB-INF/classes</targetPath>
  156. <includes>
  157. <include>**/*</include>
  158. <include>application-${package.environment}.yml</include>
  159. </includes>
  160. </resource>
  161. </resources>
  162. <plugins>
  163. <plugin>
  164. <groupId>org.springframework.boot</groupId>
  165. <artifactId>spring-boot-maven-plugin</artifactId>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>