pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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-op-server-mdm</artifactId>
  8. <version>3.0.0</version>
  9. <name>dkic-op-server-mdm</name>
  10. <description>dk iboss mdm 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-op-dependency-common</artifactId>
  65. <version>3.0.0</version>
  66. </dependency>
  67. <!--lombok-->
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <!-- pdf打印-->
  74. <dependency>
  75. <groupId>org.apache.pdfbox</groupId>
  76. <artifactId>pdfbox</artifactId>
  77. <version>2.0.8</version>
  78. </dependency>
  79. <!-- pdf生成-->
  80. <dependency>
  81. <groupId>com.itextpdf</groupId>
  82. <artifactId>itext7-core</artifactId>
  83. <version>7.1.8</version>
  84. <type>pom</type>
  85. </dependency>
  86. <!-- 二维码-->
  87. <dependency>
  88. <groupId>com.google.zxing</groupId>
  89. <artifactId>core</artifactId>
  90. <version>3.3.3</version>
  91. </dependency>
  92. <!-- 条形码-->
  93. <dependency>
  94. <groupId>net.sf.barcode4j</groupId>
  95. <artifactId>barcode4j</artifactId>
  96. <version>2.1</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>commons-lang</groupId>
  100. <artifactId>commons-lang</artifactId>
  101. <version>2.6</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.github.binarywang</groupId>
  105. <artifactId>weixin-java-pay</artifactId>
  106. <version>4.4.0</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.github.binarywang</groupId>
  110. <artifactId>weixin-java-miniapp</artifactId>
  111. <version>4.4.0</version>
  112. </dependency>
  113. <!-- JWT -->
  114. <dependency>
  115. <groupId>com.auth0</groupId>
  116. <artifactId>java-jwt</artifactId>
  117. <version>3.4.1</version>
  118. </dependency>
  119. <!-- commons-lang3 -->
  120. <dependency>
  121. <groupId>org.apache.commons</groupId>
  122. <artifactId>commons-lang3</artifactId>
  123. <version>${commons-lang3.version}</version>
  124. </dependency>
  125. <!-- shiro 关键包-->
  126. <dependency>
  127. <groupId>org.apache.shiro</groupId>
  128. <artifactId>shiro-spring</artifactId>
  129. <version>1.4.0</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.shiro</groupId>
  133. <artifactId>shiro-spring-boot-web-starter</artifactId>
  134. <version>${spring.shiro.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.oltu.oauth2</groupId>
  138. <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
  139. <version>${oltu.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.oltu.oauth2</groupId>
  143. <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
  144. <version>${oltu.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.shiro</groupId>
  148. <artifactId>shiro-ehcache</artifactId>
  149. <version>${spring.shiro.version}</version>
  150. </dependency>
  151. </dependencies>
  152. <build>
  153. <resources>
  154. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  155. <directory>src/main/java</directory>
  156. <includes>
  157. <include>**/*.xml</include>
  158. </includes>
  159. <filtering>false</filtering>
  160. </resource>
  161. <resource> <!--项目配置文件-->
  162. <directory>src/main/resources/${environment}</directory>
  163. <includes>
  164. <include>**/*</include>
  165. </includes>
  166. </resource>
  167. <resource> <!--日志配置文件-->
  168. <directory>src/main/resources</directory>
  169. <includes>
  170. <include>**/*</include>
  171. </includes>
  172. </resource>
  173. </resources>
  174. <plugins>
  175. <plugin>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-maven-plugin</artifactId>
  178. <configuration>
  179. <mainClass>com.dk.mdm.MdmServer</mainClass>
  180. </configuration>
  181. <executions>
  182. <execution>
  183. <goals>
  184. <goal>repackage</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. <plugin>
  190. <groupId>com.spotify</groupId>
  191. <artifactId>docker-maven-plugin</artifactId>
  192. <version>1.2.2</version>
  193. <configuration>
  194. <serverId>aliyun-acr</serverId>
  195. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  196. <!--依赖的基础镜像-->
  197. <baseImage>java</baseImage>
  198. <!--imageName必须跟仓库路径一致-->
  199. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  200. <!-- 指定Dockerfile所在的路径 -->
  201. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  202. <resources>
  203. <resource>
  204. <targetPath>/</targetPath>
  205. <directory>${project.build.directory}</directory>
  206. <include>${project.build.finalName}.jar</include>
  207. </resource>
  208. </resources>
  209. <pushImage>true</pushImage>
  210. </configuration>
  211. </plugin>
  212. </plugins>
  213. </build>
  214. <repositories>
  215. <!-- <repository>-->
  216. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  217. <!-- <id>private</id>-->
  218. <!-- <name>private</name>-->
  219. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  220. <!-- <releases>-->
  221. <!-- <enabled>true</enabled>-->
  222. <!-- </releases>-->
  223. <!-- <snapshots>-->
  224. <!-- <enabled>true</enabled>-->
  225. <!-- </snapshots>-->
  226. <!-- </repository>-->
  227. <!--maven私服 setting.xml 配置
  228. <server>
  229. <id>haip</id>
  230. <username>haip</username>
  231. <password>haip2020</password>
  232. </server>-->
  233. <!--阿里云仓库-->
  234. <repository>
  235. <id>aliyun</id>
  236. <name>aliyun</name>
  237. <url>https://maven.aliyun.com/repository/public</url>
  238. <releases>
  239. <enabled>true</enabled>
  240. </releases>
  241. <snapshots>
  242. <enabled>true</enabled>
  243. </snapshots>
  244. </repository>
  245. <!--中央仓库-->
  246. <repository>
  247. <id>central</id>
  248. <name>central</name>
  249. <url>https://repo1.maven.org/maven2</url>
  250. <releases>
  251. <enabled>true</enabled>
  252. </releases>
  253. <snapshots>
  254. <enabled>true</enabled>
  255. </snapshots>
  256. </repository>
  257. <repository>
  258. <id>com.e-iceblue</id>
  259. <url>http://repo.e-iceblue.cn/repository/maven-public/</url>
  260. </repository>
  261. </repositories>
  262. </project>