pom.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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>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.mes</groupId>
  64. <artifactId>mes-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. <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
  142. <filtering>true</filtering>
  143. </resource>
  144. <resource> <!--日志配置文件-->
  145. <directory>src/main/resources</directory>
  146. <includes>
  147. <include>**/*</include>
  148. </includes>
  149. <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
  150. <filtering>true</filtering>
  151. </resource>
  152. </resources>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-maven-plugin</artifactId>
  157. <configuration>
  158. <mainClass>com.dk.oauth.OauthServer</mainClass>
  159. </configuration>
  160. <executions>
  161. <execution>
  162. <goals>
  163. <goal>repackage</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <groupId>com.spotify</groupId>
  170. <artifactId>docker-maven-plugin</artifactId>
  171. <version>1.2.2</version>
  172. <configuration>
  173. <serverId>aliyun-acr</serverId>
  174. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  175. <!--依赖的基础镜像-->
  176. <baseImage>java</baseImage>
  177. <forceTags>true</forceTags> <!--覆盖相同标签镜像-->
  178. <!--imageName必须跟仓库路径一致-->
  179. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  180. <!-- 指定Dockerfile所在的路径 -->
  181. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  182. <resources>
  183. <resource>
  184. <targetPath>/</targetPath>
  185. <directory>${project.build.directory}</directory>
  186. <include>${project.build.finalName}.jar</include>
  187. </resource>
  188. </resources>
  189. <pushImage>true</pushImage>
  190. </configuration>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. <repositories>
  195. <!-- <repository>-->
  196. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  197. <!-- <id>private</id>-->
  198. <!-- <name>private</name>-->
  199. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  200. <!-- <releases>-->
  201. <!-- <enabled>true</enabled>-->
  202. <!-- </releases>-->
  203. <!-- <snapshots>-->
  204. <!-- <enabled>true</enabled>-->
  205. <!-- </snapshots>-->
  206. <!-- </repository>-->
  207. <!--maven私服 setting.xml 配置
  208. <server>
  209. <id>haip</id>
  210. <username>haip</username>
  211. <password>haip2020</password>
  212. </server>-->
  213. <!--阿里云仓库-->
  214. <repository>
  215. <id>aliyun</id>
  216. <name>aliyun</name>
  217. <url>https://maven.aliyun.com/repository/public</url>
  218. <releases>
  219. <enabled>true</enabled>
  220. </releases>
  221. <snapshots>
  222. <enabled>true</enabled>
  223. </snapshots>
  224. </repository>
  225. <!--中央仓库-->
  226. <repository>
  227. <id>central</id>
  228. <name>central</name>
  229. <url>https://repo1.maven.org/maven2</url>
  230. <releases>
  231. <enabled>true</enabled>
  232. </releases>
  233. <snapshots>
  234. <enabled>true</enabled>
  235. </snapshots>
  236. </repository>
  237. </repositories>
  238. </project>