pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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>iboss-server-oauth</artifactId>
  8. <version>3.0.0</version>
  9. <name>iboss-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>iboss-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. </dependencies>
  127. <build>
  128. <resources>
  129. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  130. <directory>src/main/java</directory>
  131. <includes>
  132. <include>**/*.xml</include>
  133. </includes>
  134. <filtering>false</filtering>
  135. </resource>
  136. <resource> <!--项目配置文件-->
  137. <directory>src/main/resources/${environment}</directory>
  138. <includes>
  139. <include>**/*</include>
  140. </includes>
  141. </resource>
  142. <resource> <!--日志配置文件-->
  143. <directory>src/main/resources</directory>
  144. <includes>
  145. <include>**/*</include>
  146. </includes>
  147. </resource>
  148. </resources>
  149. <plugins>
  150. <plugin>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-maven-plugin</artifactId>
  153. <configuration>
  154. <mainClass>com.dk.oauth.OauthServer</mainClass>
  155. </configuration>
  156. <executions>
  157. <execution>
  158. <goals>
  159. <goal>repackage</goal>
  160. </goals>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <plugin>
  165. <groupId>com.spotify</groupId>
  166. <artifactId>docker-maven-plugin</artifactId>
  167. <version>1.2.2</version>
  168. <configuration>
  169. <serverId>aliyun-acr</serverId>
  170. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  171. <!--依赖的基础镜像-->
  172. <baseImage>java</baseImage>
  173. <forceTags>true</forceTags> <!--覆盖相同标签镜像-->
  174. <!--imageName必须跟仓库路径一致-->
  175. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  176. <!-- 指定Dockerfile所在的路径 -->
  177. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  178. <resources>
  179. <resource>
  180. <targetPath>/</targetPath>
  181. <directory>${project.build.directory}</directory>
  182. <include>${project.build.finalName}.jar</include>
  183. </resource>
  184. </resources>
  185. <pushImage>true</pushImage>
  186. </configuration>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. <repositories>
  191. <!-- <repository>-->
  192. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  193. <!-- <id>private</id>-->
  194. <!-- <name>private</name>-->
  195. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  196. <!-- <releases>-->
  197. <!-- <enabled>true</enabled>-->
  198. <!-- </releases>-->
  199. <!-- <snapshots>-->
  200. <!-- <enabled>true</enabled>-->
  201. <!-- </snapshots>-->
  202. <!-- </repository>-->
  203. <!--maven私服 setting.xml 配置
  204. <server>
  205. <id>haip</id>
  206. <username>haip</username>
  207. <password>haip2020</password>
  208. </server>-->
  209. <!--阿里云仓库-->
  210. <repository>
  211. <id>aliyun</id>
  212. <name>aliyun</name>
  213. <url>https://maven.aliyun.com/repository/public</url>
  214. <releases>
  215. <enabled>true</enabled>
  216. </releases>
  217. <snapshots>
  218. <enabled>true</enabled>
  219. </snapshots>
  220. </repository>
  221. <!--中央仓库-->
  222. <repository>
  223. <id>central</id>
  224. <name>central</name>
  225. <url>https://repo1.maven.org/maven2</url>
  226. <releases>
  227. <enabled>true</enabled>
  228. </releases>
  229. <snapshots>
  230. <enabled>true</enabled>
  231. </snapshots>
  232. </repository>
  233. </repositories>
  234. </project>