pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.dk.iboss</groupId>
  7. <artifactId>dkic-server-oauth</artifactId>
  8. <version>3.0.0</version>
  9. <name>dkic-server-oauth</name>
  10. <description>dk iboss oauth server</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.2.6.RELEASE</version>
  15. <relativePath/>
  16. </parent>
  17. <properties>
  18. <com.alibaba.druid.version>1.1.21</com.alibaba.druid.version>
  19. <mybatis-plus-boot-starter.version>3.0-RC3</mybatis-plus-boot-starter.version>
  20. <spring.shiro.version>1.4.0</spring.shiro.version>
  21. <oltu.version>1.0.0</oltu.version>
  22. <servlet-api.version>3.0-alpha-1</servlet-api.version>
  23. <javax.servlet.jsp-api.version>2.3.1</javax.servlet.jsp-api.version>
  24. </properties>
  25. <profiles>
  26. <profile>
  27. <id>st</id>
  28. <properties>
  29. <environment>st</environment>
  30. </properties>
  31. </profile>
  32. <profile>
  33. <id>uat</id>
  34. <properties>
  35. <environment>uat</environment>
  36. </properties>
  37. </profile>
  38. <profile>
  39. <id>prod</id>
  40. <properties>
  41. <environment>prod</environment>
  42. </properties>
  43. </profile>
  44. <profile>
  45. <id>test</id>
  46. <properties>
  47. <environment>test</environment>
  48. </properties>
  49. </profile>
  50. <profile>
  51. <id>dev</id>
  52. <properties>
  53. <environment>dev</environment>
  54. </properties>
  55. <activation>
  56. <activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
  57. </activation>
  58. </profile>
  59. </profiles>
  60. <dependencies>
  61. <!-- 公共模块 -->
  62. <dependency>
  63. <groupId>com.dk.iboss</groupId>
  64. <artifactId>dkic-dependency-common</artifactId>
  65. <version>3.0.0</version>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>com.alibaba</groupId>
  69. <artifactId>fastjson</artifactId>
  70. </exclusion>
  71. <exclusion>
  72. <groupId>com.vaadin.external.google</groupId>
  73. <artifactId>android-json</artifactId>
  74. </exclusion>
  75. </exclusions>
  76. </dependency>
  77. <!-- lombok -->
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <optional>true</optional>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.alibaba</groupId>
  85. <artifactId>fastjson</artifactId>
  86. <version>1.2.47</version>
  87. </dependency>
  88. <!-- JWT -->
  89. <dependency>
  90. <groupId>com.auth0</groupId>
  91. <artifactId>java-jwt</artifactId>
  92. <version>3.4.1</version>
  93. </dependency>
  94. <!-- commons-lang3 -->
  95. <dependency>
  96. <groupId>org.apache.commons</groupId>
  97. <artifactId>commons-lang3</artifactId>
  98. <version>${commons-lang3.version}</version>
  99. </dependency>
  100. <!-- shiro 关键包-->
  101. <dependency>
  102. <groupId>org.apache.shiro</groupId>
  103. <artifactId>shiro-spring</artifactId>
  104. <version>1.4.0</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.shiro</groupId>
  108. <artifactId>shiro-spring-boot-web-starter</artifactId>
  109. <version>${spring.shiro.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.oltu.oauth2</groupId>
  113. <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
  114. <version>${oltu.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.oltu.oauth2</groupId>
  118. <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
  119. <version>${oltu.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.shiro</groupId>
  123. <artifactId>shiro-ehcache</artifactId>
  124. <version>${spring.shiro.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.github.binarywang</groupId>
  128. <artifactId>weixin-java-pay</artifactId>
  129. <version>4.4.0</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.github.binarywang</groupId>
  133. <artifactId>weixin-java-miniapp</artifactId>
  134. <version>4.4.0</version>
  135. </dependency>
  136. </dependencies>
  137. <build>
  138. <resources>
  139. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  140. <directory>src/main/java</directory>
  141. <includes>
  142. <include>**/*.xml</include>
  143. </includes>
  144. <filtering>false</filtering>
  145. </resource>
  146. <resource> <!--项目配置文件-->
  147. <directory>src/main/resources/${environment}</directory>
  148. <includes>
  149. <include>**/*</include>
  150. </includes>
  151. <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
  152. <filtering>true</filtering>
  153. </resource>
  154. <resource> <!--日志配置文件-->
  155. <directory>src/main/resources</directory>
  156. <includes>
  157. <include>**/*</include>
  158. </includes>
  159. <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
  160. <filtering>true</filtering>
  161. </resource>
  162. </resources>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.springframework.boot</groupId>
  166. <artifactId>spring-boot-maven-plugin</artifactId>
  167. <configuration>
  168. <mainClass>com.dk.oauth.OauthServer</mainClass>
  169. </configuration>
  170. <executions>
  171. <execution>
  172. <goals>
  173. <goal>repackage</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <plugin>
  179. <groupId>com.spotify</groupId>
  180. <artifactId>docker-maven-plugin</artifactId>
  181. <version>1.2.2</version>
  182. <configuration>
  183. <serverId>aliyun-acr</serverId>
  184. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  185. <!--依赖的基础镜像-->
  186. <baseImage>java</baseImage>
  187. <forceTags>true</forceTags> <!--覆盖相同标签镜像-->
  188. <!--imageName必须跟仓库路径一致-->
  189. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  190. <!-- 指定Dockerfile所在的路径 -->
  191. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  192. <resources>
  193. <resource>
  194. <targetPath>/</targetPath>
  195. <directory>${project.build.directory}</directory>
  196. <include>${project.build.finalName}.jar</include>
  197. </resource>
  198. </resources>
  199. <pushImage>true</pushImage>
  200. </configuration>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. <repositories>
  205. <!-- <repository>-->
  206. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  207. <!-- <id>private</id>-->
  208. <!-- <name>private</name>-->
  209. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  210. <!-- <releases>-->
  211. <!-- <enabled>true</enabled>-->
  212. <!-- </releases>-->
  213. <!-- <snapshots>-->
  214. <!-- <enabled>true</enabled>-->
  215. <!-- </snapshots>-->
  216. <!-- </repository>-->
  217. <!--maven私服 setting.xml 配置
  218. <server>
  219. <id>haip</id>
  220. <username>haip</username>
  221. <password>haip2020</password>
  222. </server>-->
  223. <!--阿里云仓库-->
  224. <repository>
  225. <id>aliyun</id>
  226. <name>aliyun</name>
  227. <url>https://maven.aliyun.com/repository/public</url>
  228. <releases>
  229. <enabled>true</enabled>
  230. </releases>
  231. <snapshots>
  232. <enabled>true</enabled>
  233. </snapshots>
  234. </repository>
  235. <!--中央仓库-->
  236. <repository>
  237. <id>central</id>
  238. <name>central</name>
  239. <url>https://repo1.maven.org/maven2</url>
  240. <releases>
  241. <enabled>true</enabled>
  242. </releases>
  243. <snapshots>
  244. <enabled>true</enabled>
  245. </snapshots>
  246. </repository>
  247. </repositories>
  248. </project>