pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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>iboss-server-mdm</artifactId>
  8. <version>3.0.0</version>
  9. <name>iboss-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. <profiles>
  18. <profile>
  19. <id>st</id>
  20. <properties>
  21. <environment>st</environment>
  22. </properties>
  23. </profile>
  24. <profile>
  25. <id>uat</id>
  26. <properties>
  27. <environment>uat</environment>
  28. </properties>
  29. </profile>
  30. <profile>
  31. <id>prod</id>
  32. <properties>
  33. <environment>prod</environment>
  34. </properties>
  35. </profile>
  36. <profile>
  37. <id>test</id>
  38. <properties>
  39. <environment>test</environment>
  40. </properties>
  41. </profile>
  42. <profile>
  43. <id>dev</id>
  44. <properties>
  45. <environment>dev</environment>
  46. </properties>
  47. <activation>
  48. <activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
  49. </activation>
  50. </profile>
  51. </profiles>
  52. <dependencies>
  53. <!--公共模块-->
  54. <dependency>
  55. <groupId>com.dk.iboss</groupId>
  56. <artifactId>iboss-dependency-common</artifactId>
  57. <version>3.0.0</version>
  58. </dependency>
  59. <!--lombok-->
  60. <dependency>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. <optional>true</optional>
  64. </dependency>
  65. <!-- pdf打印-->
  66. <dependency>
  67. <groupId>org.apache.pdfbox</groupId>
  68. <artifactId>pdfbox</artifactId>
  69. <version>2.0.8</version>
  70. </dependency>
  71. <!-- pdf生成-->
  72. <dependency>
  73. <groupId>com.itextpdf</groupId>
  74. <artifactId>itext7-core</artifactId>
  75. <version>7.1.8</version>
  76. <type>pom</type>
  77. </dependency>
  78. <!-- 二维码-->
  79. <dependency>
  80. <groupId>com.google.zxing</groupId>
  81. <artifactId>core</artifactId>
  82. <version>3.3.3</version>
  83. </dependency>
  84. <!-- 条形码-->
  85. <dependency>
  86. <groupId>net.sf.barcode4j</groupId>
  87. <artifactId>barcode4j</artifactId>
  88. <version>2.1</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>commons-lang</groupId>
  92. <artifactId>commons-lang</artifactId>
  93. <version>2.6</version>
  94. </dependency>
  95. </dependencies>
  96. <build>
  97. <resources>
  98. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  99. <directory>src/main/java</directory>
  100. <includes>
  101. <include>**/*.xml</include>
  102. </includes>
  103. <filtering>false</filtering>
  104. </resource>
  105. <resource> <!--项目配置文件-->
  106. <directory>src/main/resources/${environment}</directory>
  107. <includes>
  108. <include>**/*</include>
  109. </includes>
  110. </resource>
  111. <resource> <!--日志配置文件-->
  112. <directory>src/main/resources</directory>
  113. <includes>
  114. <include>**/*</include>
  115. </includes>
  116. </resource>
  117. </resources>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-maven-plugin</artifactId>
  122. <configuration>
  123. <mainClass>com.dk.mdm.MdmServer</mainClass>
  124. </configuration>
  125. <executions>
  126. <execution>
  127. <goals>
  128. <goal>repackage</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <groupId>com.spotify</groupId>
  135. <artifactId>docker-maven-plugin</artifactId>
  136. <version>1.2.2</version>
  137. <configuration>
  138. <serverId>aliyun-acr</serverId>
  139. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  140. <!--依赖的基础镜像-->
  141. <baseImage>java</baseImage>
  142. <!--imageName必须跟仓库路径一致-->
  143. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  144. <!-- 指定Dockerfile所在的路径 -->
  145. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  146. <resources>
  147. <resource>
  148. <targetPath>/</targetPath>
  149. <directory>${project.build.directory}</directory>
  150. <include>${project.build.finalName}.jar</include>
  151. </resource>
  152. </resources>
  153. <pushImage>true</pushImage>
  154. </configuration>
  155. </plugin>
  156. </plugins>
  157. </build>
  158. <repositories>
  159. <!-- <repository>-->
  160. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  161. <!-- <id>private</id>-->
  162. <!-- <name>private</name>-->
  163. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  164. <!-- <releases>-->
  165. <!-- <enabled>true</enabled>-->
  166. <!-- </releases>-->
  167. <!-- <snapshots>-->
  168. <!-- <enabled>true</enabled>-->
  169. <!-- </snapshots>-->
  170. <!-- </repository>-->
  171. <!--maven私服 setting.xml 配置
  172. <server>
  173. <id>haip</id>
  174. <username>haip</username>
  175. <password>haip2020</password>
  176. </server>-->
  177. <!--阿里云仓库-->
  178. <repository>
  179. <id>aliyun</id>
  180. <name>aliyun</name>
  181. <url>https://maven.aliyun.com/repository/public</url>
  182. <releases>
  183. <enabled>true</enabled>
  184. </releases>
  185. <snapshots>
  186. <enabled>true</enabled>
  187. </snapshots>
  188. </repository>
  189. <!--中央仓库-->
  190. <repository>
  191. <id>central</id>
  192. <name>central</name>
  193. <url>https://repo1.maven.org/maven2</url>
  194. <releases>
  195. <enabled>true</enabled>
  196. </releases>
  197. <snapshots>
  198. <enabled>true</enabled>
  199. </snapshots>
  200. </repository>
  201. <repository>
  202. <id>com.e-iceblue</id>
  203. <url>http://repo.e-iceblue.cn/repository/maven-public/</url>
  204. </repository>
  205. </repositories>
  206. </project>