pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.uas.ps</groupId>
  6. <artifactId>ps-parent</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>ps-message</artifactId>
  10. <packaging>jar</packaging>
  11. <properties>
  12. <docker.plugin.version>0.4.13</docker.plugin.version>
  13. <!-- <docker.host>http://10.10.100.200:5555</docker.host> -->
  14. <docker.registry>10.10.100.200:5000</docker.registry>
  15. <docker.directory>${project.build.directory}/generated-docker</docker.directory>
  16. <docker.pushImage>false</docker.pushImage>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>junit</groupId>
  21. <artifactId>junit</artifactId>
  22. <scope>test</scope>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.uas.ps</groupId>
  26. <artifactId>ps-core</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.uas.ps</groupId>
  30. <artifactId>ps-httplog</artifactId>
  31. </dependency>
  32. <!--<dependency>
  33. <groupId>com.uas.account</groupId>
  34. <artifactId>sso-integration</artifactId>
  35. </dependency>-->
  36. <!-- spring boot -->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-actuator</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-web</artifactId>
  44. </dependency>
  45. <!--jdbcTemplate-->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-jdbc</artifactId>
  49. </dependency>
  50. <!--jpa-->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-data-jpa</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-configuration-processor</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.alibaba</groupId>
  61. <artifactId>fastjson</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.zaxxer</groupId>
  65. <artifactId>HikariCP</artifactId>
  66. <version>3.2.0</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.hibernate</groupId>
  70. <artifactId>hibernate-core</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.hibernate</groupId>
  74. <artifactId>hibernate-ehcache</artifactId>
  75. </dependency>
  76. <!-- 邮件 -->
  77. <dependency>
  78. <groupId>com.uas.message</groupId>
  79. <artifactId>message-mail-api</artifactId>
  80. <version>0.0.1</version>
  81. </dependency>
  82. <!-- httpClient -->
  83. <dependency>
  84. <groupId>org.apache.httpcomponents</groupId>
  85. <artifactId>httpclient</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.httpcomponents</groupId>
  89. <artifactId>httpmime</artifactId>
  90. </dependency>
  91. <!-- 消息-->
  92. <dependency>
  93. <groupId>com.uas.message</groupId>
  94. <artifactId>message-sms-api</artifactId>
  95. <version>0.0.1</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>mysql</groupId>
  99. <artifactId>mysql-connector-java</artifactId>
  100. <scope>runtime</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.uas.sso</groupId>
  104. <artifactId>sso-common</artifactId>
  105. <version>0.0.1-SNAPSHOT</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-starter-amqp</artifactId>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <resources>
  114. <!-- 必须包含这个 -->
  115. <resource>
  116. <directory>${project.basedir}/src/main/resources</directory>
  117. <includes>
  118. <include>**/*</include>
  119. </includes>
  120. </resource>
  121. <!-- 替换Dockerfile占位符 -->
  122. <resource>
  123. <directory>${project.basedir}/src/main/docker</directory>
  124. <filtering>true</filtering>
  125. <includes>
  126. <include>**/Dockerfile</include>
  127. </includes>
  128. <targetPath>${docker.directory}</targetPath>
  129. </resource>
  130. </resources>
  131. <plugins>
  132. <plugin>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot-maven-plugin</artifactId>
  135. </plugin>
  136. <!--
  137. <plugin>
  138. <groupId>com.spotify</groupId>
  139. <artifactId>docker-maven-plugin</artifactId>
  140. <version>${docker.plugin.version}</version>
  141. <executions>
  142. <execution>
  143. <id>build-image</id>
  144. <phase>package</phase>
  145. <goals>
  146. <goal>build</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. <configuration>
  151. <registryUrl>${docker.registry}</registryUrl>
  152. <dockerHost>${docker.host}</dockerHost>
  153. <baseImage>${docker.registry}/java</baseImage>
  154. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  155. <dockerDirectory>${docker.directory}</dockerDirectory>
  156. <imageName>${docker.registry}/${project.artifactId}</imageName>
  157. <pushImage>${docker.pushImage}</pushImage>
  158. <resources>
  159. <resource>
  160. <targetPath>/</targetPath>
  161. <directory>${project.build.directory}</directory>
  162. <include>${project.build.finalName}.jar</include>
  163. </resource>
  164. </resources>
  165. </configuration>
  166. </plugin>
  167. -->
  168. </plugins>
  169. </build>
  170. </project>