pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. </dependencies>
  108. <build>
  109. <resources>
  110. <!-- 必须包含这个 -->
  111. <resource>
  112. <directory>${project.basedir}/src/main/resources</directory>
  113. <includes>
  114. <include>**/*</include>
  115. </includes>
  116. </resource>
  117. <!-- 替换Dockerfile占位符 -->
  118. <resource>
  119. <directory>${project.basedir}/src/main/docker</directory>
  120. <filtering>true</filtering>
  121. <includes>
  122. <include>**/Dockerfile</include>
  123. </includes>
  124. <targetPath>${docker.directory}</targetPath>
  125. </resource>
  126. </resources>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-maven-plugin</artifactId>
  131. </plugin>
  132. <plugin>
  133. <groupId>com.spotify</groupId>
  134. <artifactId>docker-maven-plugin</artifactId>
  135. <version>${docker.plugin.version}</version>
  136. <executions>
  137. <execution>
  138. <id>build-image</id>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>build</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. <configuration>
  146. <registryUrl>${docker.registry}</registryUrl>
  147. <!-- <dockerHost>${docker.host}</dockerHost>
  148. <baseImage>${docker.registry}/java</baseImage>
  149. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  150. -->
  151. <dockerDirectory>${docker.directory}</dockerDirectory>
  152. <imageName>${docker.registry}/${project.artifactId}</imageName>
  153. <pushImage>${docker.pushImage}</pushImage>
  154. <resources>
  155. <resource>
  156. <targetPath>/</targetPath>
  157. <directory>${project.build.directory}</directory>
  158. <include>${project.build.finalName}.jar</include>
  159. </resource>
  160. </resources>
  161. </configuration>
  162. </plugin>
  163. </plugins>
  164. </build>
  165. </project>