pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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.mes</groupId>
  7. <artifactId>mes-server-bpm</artifactId>
  8. <version>3.0.0</version>
  9. <name>mes-server-bpm</name>
  10. <description>dk mes bpm 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.mes</groupId>
  56. <artifactId>mes-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. <dependency>
  66. <groupId>com.alibaba</groupId>
  67. <artifactId>QLExpress</artifactId>
  68. <version>3.2.0</version>
  69. </dependency>
  70. </dependencies>
  71. <build>
  72. <resources>
  73. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  74. <directory>src/main/java</directory>
  75. <includes>
  76. <include>**/*.xml</include>
  77. </includes>
  78. <filtering>false</filtering>
  79. </resource>
  80. <resource> <!--项目配置文件-->
  81. <directory>src/main/resources/${environment}</directory>
  82. <includes>
  83. <include>**/*</include>
  84. </includes>
  85. <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
  86. <filtering>true</filtering>
  87. </resource>
  88. <resource> <!--日志配置文件-->
  89. <directory>src/main/resources</directory>
  90. <includes>
  91. <include>**/*</include>
  92. </includes>
  93. <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
  94. <filtering>true</filtering>
  95. </resource>
  96. </resources>
  97. <plugins>
  98. <plugin>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-maven-plugin</artifactId>
  101. <configuration>
  102. <mainClass>com.dk.bpm.BpmServer</mainClass>
  103. </configuration>
  104. <executions>
  105. <execution>
  106. <goals>
  107. <goal>repackage</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <plugin>
  113. <groupId>com.spotify</groupId>
  114. <artifactId>docker-maven-plugin</artifactId>
  115. <version>1.2.2</version>
  116. <configuration>
  117. <serverId>aliyun-acr</serverId>
  118. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  119. <!--依赖的基础镜像-->
  120. <baseImage>java</baseImage>
  121. <!--imageName必须跟仓库路径一致-->
  122. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  123. <!-- 指定Dockerfile所在的路径 -->
  124. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  125. <resources>
  126. <resource>
  127. <targetPath>/</targetPath>
  128. <directory>${project.build.directory}</directory>
  129. <include>${project.build.finalName}.jar</include>
  130. </resource>
  131. </resources>
  132. <pushImage>true</pushImage>
  133. </configuration>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. <repositories>
  138. <!-- <repository>-->
  139. <!-- &lt;!&ndash;恒洁maven私服 haip仓库&ndash;&gt;-->
  140. <!-- <id>private</id>-->
  141. <!-- <name>private</name>-->
  142. <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
  143. <!-- <releases>-->
  144. <!-- <enabled>true</enabled>-->
  145. <!-- </releases>-->
  146. <!-- <snapshots>-->
  147. <!-- <enabled>true</enabled>-->
  148. <!-- </snapshots>-->
  149. <!-- </repository>-->
  150. <!--maven私服 setting.xml 配置
  151. <server>
  152. <id>haip</id>
  153. <username>haip</username>
  154. <password>haip2020</password>
  155. </server>-->
  156. <!--阿里云仓库-->
  157. <repository>
  158. <id>aliyun</id>
  159. <name>aliyun</name>
  160. <url>https://maven.aliyun.com/repository/public</url>
  161. <releases>
  162. <enabled>true</enabled>
  163. </releases>
  164. <snapshots>
  165. <enabled>true</enabled>
  166. </snapshots>
  167. </repository>
  168. <!--中央仓库-->
  169. <repository>
  170. <id>central</id>
  171. <name>central</name>
  172. <url>https://repo1.maven.org/maven2</url>
  173. <releases>
  174. <enabled>true</enabled>
  175. </releases>
  176. <snapshots>
  177. <enabled>true</enabled>
  178. </snapshots>
  179. </repository>
  180. </repositories>
  181. </project>