pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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.mes</groupId>
  7. <artifactId>mes-server-oauth</artifactId>
  8. <version>3.0.0</version>
  9. <name>mes-server-oauth</name>
  10. <description>dk mes 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>uat</id>
  28. <properties>
  29. <environment>uat</environment>
  30. </properties>
  31. </profile>
  32. <profile>
  33. <id>prod</id>
  34. <properties>
  35. <environment>prod</environment>
  36. </properties>
  37. </profile>
  38. <profile>
  39. <id>test</id>
  40. <properties>
  41. <environment>test</environment>
  42. </properties>
  43. </profile>
  44. <profile>
  45. <id>dev</id>
  46. <properties>
  47. <environment>dev</environment>
  48. </properties>
  49. <activation>
  50. <activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
  51. </activation>
  52. </profile>
  53. </profiles>
  54. <dependencies>
  55. <!-- 公共模块 -->
  56. <dependency>
  57. <groupId>com.dk.mes</groupId>
  58. <artifactId>mes-dependency-common</artifactId>
  59. <version>3.0.0</version>
  60. <exclusions>
  61. <exclusion>
  62. <groupId>com.alibaba</groupId>
  63. <artifactId>fastjson</artifactId>
  64. </exclusion>
  65. <exclusion>
  66. <groupId>com.vaadin.external.google</groupId>
  67. <artifactId>android-json</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. <!-- lombok -->
  72. <dependency>
  73. <groupId>org.projectlombok</groupId>
  74. <artifactId>lombok</artifactId>
  75. <optional>true</optional>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.alibaba</groupId>
  79. <artifactId>fastjson</artifactId>
  80. <version>1.2.47</version>
  81. </dependency>
  82. <!-- JWT -->
  83. <dependency>
  84. <groupId>com.auth0</groupId>
  85. <artifactId>java-jwt</artifactId>
  86. <version>3.4.1</version>
  87. </dependency>
  88. <!-- commons-lang3 -->
  89. <dependency>
  90. <groupId>org.apache.commons</groupId>
  91. <artifactId>commons-lang3</artifactId>
  92. <version>${commons-lang3.version}</version>
  93. </dependency>
  94. <!-- shiro 关键包-->
  95. <dependency>
  96. <groupId>org.apache.shiro</groupId>
  97. <artifactId>shiro-spring</artifactId>
  98. <version>1.4.0</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.shiro</groupId>
  102. <artifactId>shiro-spring-boot-web-starter</artifactId>
  103. <version>${spring.shiro.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.oltu.oauth2</groupId>
  107. <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
  108. <version>${oltu.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.apache.oltu.oauth2</groupId>
  112. <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
  113. <version>${oltu.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.shiro</groupId>
  117. <artifactId>shiro-ehcache</artifactId>
  118. <version>${spring.shiro.version}</version>
  119. </dependency>
  120. </dependencies>
  121. <build>
  122. <resources>
  123. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  124. <directory>src/main/java</directory>
  125. <includes>
  126. <include>**/*.xml</include>
  127. </includes>
  128. <filtering>false</filtering>
  129. </resource>
  130. <resource> <!--项目配置文件-->
  131. <directory>src/main/resources/${environment}</directory>
  132. <includes>
  133. <include>**/*</include>
  134. </includes>
  135. </resource>
  136. <resource> <!--日志配置文件-->
  137. <directory>src/main/resources</directory>
  138. <includes>
  139. <include>**/*</include>
  140. </includes>
  141. </resource>
  142. </resources>
  143. <plugins>
  144. <plugin>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-maven-plugin</artifactId>
  147. <configuration>
  148. <mainClass>com.dk.oauth.OauthServer</mainClass>
  149. </configuration>
  150. <executions>
  151. <execution>
  152. <goals>
  153. <goal>repackage</goal>
  154. </goals>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. <plugin>
  159. <groupId>com.spotify</groupId>
  160. <artifactId>docker-maven-plugin</artifactId>
  161. <version>1.2.2</version>
  162. <configuration>
  163. <serverId>aliyun-acr</serverId>
  164. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  165. <!--依赖的基础镜像-->
  166. <baseImage>java</baseImage>
  167. <forceTags>true</forceTags> <!--覆盖相同标签镜像-->
  168. <!--imageName必须跟仓库路径一致-->
  169. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  170. <!-- 指定Dockerfile所在的路径 -->
  171. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  172. <resources>
  173. <resource>
  174. <targetPath>/</targetPath>
  175. <directory>${project.build.directory}</directory>
  176. <include>${project.build.finalName}.jar</include>
  177. </resource>
  178. </resources>
  179. <pushImage>true</pushImage>
  180. </configuration>
  181. </plugin>
  182. </plugins>
  183. </build>
  184. <repositories>
  185. <!-- <repository>-->
  186. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  187. <!-- <id>private</id>-->
  188. <!-- <name>private</name>-->
  189. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  190. <!-- <releases>-->
  191. <!-- <enabled>true</enabled>-->
  192. <!-- </releases>-->
  193. <!-- <snapshots>-->
  194. <!-- <enabled>true</enabled>-->
  195. <!-- </snapshots>-->
  196. <!-- </repository>-->
  197. <!--maven私服 setting.xml 配置
  198. <server>
  199. <id>haip</id>
  200. <username>haip</username>
  201. <password>haip2020</password>
  202. </server>-->
  203. <!--阿里云仓库-->
  204. <repository>
  205. <id>aliyun</id>
  206. <name>aliyun</name>
  207. <url>https://maven.aliyun.com/repository/public</url>
  208. <releases>
  209. <enabled>true</enabled>
  210. </releases>
  211. <snapshots>
  212. <enabled>true</enabled>
  213. </snapshots>
  214. </repository>
  215. <!--中央仓库-->
  216. <repository>
  217. <id>central</id>
  218. <name>central</name>
  219. <url>https://repo1.maven.org/maven2</url>
  220. <releases>
  221. <enabled>true</enabled>
  222. </releases>
  223. <snapshots>
  224. <enabled>true</enabled>
  225. </snapshots>
  226. </repository>
  227. </repositories>
  228. </project>