pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.xuxueli</groupId>
  6. <artifactId>xxl-job</artifactId>
  7. <version>2.3.0</version>
  8. </parent>
  9. <groupId>com.dk.mes</groupId>
  10. <artifactId>mes-server-scheduler</artifactId>
  11. <version>3.0.0</version>
  12. <name>mes-server-scheduler</name>
  13. <description>dk mes order server</description>
  14. <profiles>
  15. <profile>
  16. <id>uat</id>
  17. <properties>
  18. <environment>uat</environment>
  19. </properties>
  20. </profile>
  21. <profile>
  22. <id>prod</id>
  23. <properties>
  24. <environment>prod</environment>
  25. </properties>
  26. </profile>
  27. <profile>
  28. <id>test</id>
  29. <properties>
  30. <environment>test</environment>
  31. </properties>
  32. </profile>
  33. <profile>
  34. <id>dev</id>
  35. <properties>
  36. <environment>dev</environment>
  37. </properties>
  38. <activation>
  39. <activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
  40. </activation>
  41. </profile>
  42. </profiles>
  43. <dependencyManagement>
  44. <dependencies>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-parent</artifactId>
  48. <version>2.2.6.RELEASE</version>
  49. <type>pom</type>
  50. <scope>import</scope>
  51. </dependency>
  52. </dependencies>
  53. </dependencyManagement>
  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. <artifactId>mybatis-plus-extension</artifactId>
  63. <groupId>com.baomidou</groupId>
  64. </exclusion>
  65. <exclusion>
  66. <artifactId>mybatis-plus</artifactId>
  67. <groupId>com.baomidou</groupId>
  68. </exclusion>
  69. <exclusion>
  70. <artifactId>mybatis-plus-boot-starter</artifactId>
  71. <groupId>com.baomidou</groupId>
  72. </exclusion>
  73. <exclusion>
  74. <artifactId>mybatis-plus-generator</artifactId>
  75. <groupId>com.baomidou</groupId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. <!-- starter-web:spring-webmvc + autoconfigure + logback + yaml + tomcat -->
  80. <!-- <dependency>-->
  81. <!-- <groupId>org.springframework.boot</groupId>-->
  82. <!-- <artifactId>spring-boot-starter-web</artifactId>-->
  83. <!-- </dependency>-->
  84. <!-- &lt;!&ndash; starter-test:junit + spring-test + mockito &ndash;&gt;-->
  85. <!-- <dependency>-->
  86. <!-- <groupId>org.springframework.boot</groupId>-->
  87. <!-- <artifactId>spring-boot-starter-test</artifactId>-->
  88. <!-- <scope>test</scope>-->
  89. <!-- </dependency>-->
  90. <!-- freemarker-starter -->
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-freemarker</artifactId>
  94. </dependency>
  95. <!-- mail-starter -->
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-mail</artifactId>
  99. </dependency>
  100. <!-- starter-actuator -->
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-actuator</artifactId>
  104. </dependency>
  105. <!-- mybatis-starter:mybatis + mybatis-spring + hikari(default) -->
  106. <dependency>
  107. <groupId>org.mybatis.spring.boot</groupId>
  108. <artifactId>mybatis-spring-boot-starter</artifactId>
  109. <version>${mybatis-spring-boot-starter.version}</version>
  110. </dependency>
  111. <!-- &lt;!&ndash; mysql &ndash;&gt;-->
  112. <!-- <dependency>-->
  113. <!-- <groupId>mysql</groupId>-->
  114. <!-- <artifactId>mysql-connector-java</artifactId>-->
  115. <!-- <version>${mysql-connector-java.version}</version>-->
  116. <!-- </dependency>-->
  117. <!-- xxl-job-core -->
  118. <dependency>
  119. <groupId>com.xuxueli</groupId>
  120. <artifactId>xxl-job-core</artifactId>
  121. <version>${project.parent.version}</version>
  122. </dependency>
  123. <!-- 加载postgresql驱动 -->
  124. <dependency>
  125. <groupId>org.postgresql</groupId>
  126. <artifactId>postgresql</artifactId>
  127. <version>42.2.11</version>
  128. </dependency>
  129. </dependencies>
  130. <build>
  131. <resources>
  132. <resource> <!--项目配置文件-->
  133. <directory>src/main/resources/${environment}</directory>
  134. <includes>
  135. <include>**/*</include>
  136. </includes>
  137. </resource>
  138. <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
  139. <directory>src/main/java</directory>
  140. <includes>
  141. <include>**/*.xml</include>
  142. </includes>
  143. <filtering>false</filtering>
  144. </resource>
  145. <resource> <!--日志配置文件-->
  146. <directory>src/main/resources</directory>
  147. <includes>
  148. <include>**/*</include>
  149. </includes>
  150. </resource>
  151. </resources>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-maven-plugin</artifactId>
  156. <version>${spring-boot.version}</version>
  157. <executions>
  158. <execution>
  159. <goals>
  160. <goal>repackage</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <!-- docker -->
  166. <plugin>
  167. <groupId>com.spotify</groupId>
  168. <artifactId>docker-maven-plugin</artifactId>
  169. <version>1.2.2</version>
  170. <configuration>
  171. <serverId>aliyun-acr</serverId>
  172. <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
  173. <!--依赖的基础镜像-->
  174. <baseImage>java</baseImage>
  175. <!--imageName必须跟仓库路径一致-->
  176. <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
  177. <!-- 指定Dockerfile所在的路径 -->
  178. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  179. <resources>
  180. <resource>
  181. <targetPath>/</targetPath>
  182. <directory>${project.build.directory}</directory>
  183. <include>${project.build.finalName}.jar</include>
  184. </resource>
  185. </resources>
  186. <pushImage>true</pushImage>
  187. </configuration>
  188. </plugin>
  189. </plugins>
  190. </build>
  191. <repositories>
  192. <repository>
  193. <!--恒洁maven私服 haip仓库-->
  194. <id>private</id>
  195. <name>private</name>
  196. <url>http://172.17.216.67:8081/repository/haip</url>
  197. <releases>
  198. <enabled>true</enabled>
  199. </releases>
  200. <snapshots>
  201. <enabled>true</enabled>
  202. </snapshots>
  203. </repository>
  204. <!--maven私服 setting.xml 配置
  205. <server>
  206. <id>haip</id>
  207. <username>haip</username>
  208. <password>haip2020</password>
  209. </server>-->
  210. <!--阿里云仓库-->
  211. <repository>
  212. <id>aliyun</id>
  213. <name>aliyun</name>
  214. <url>https://maven.aliyun.com/repository/public</url>
  215. <releases>
  216. <enabled>true</enabled>
  217. </releases>
  218. <snapshots>
  219. <enabled>true</enabled>
  220. </snapshots>
  221. </repository>
  222. <!--中央仓库-->
  223. <repository>
  224. <id>central</id>
  225. <name>central</name>
  226. <url>https://repo1.maven.org/maven2</url>
  227. <releases>
  228. <enabled>true</enabled>
  229. </releases>
  230. <snapshots>
  231. <enabled>true</enabled>
  232. </snapshots>
  233. </repository>
  234. </repositories>
  235. </project>