pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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.alibaba</groupId>
  65. <artifactId>druid</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.hibernate</groupId>
  69. <artifactId>hibernate-core</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.hibernate</groupId>
  73. <artifactId>hibernate-ehcache</artifactId>
  74. </dependency>
  75. <!-- 邮件 -->
  76. <dependency>
  77. <groupId>com.uas.message</groupId>
  78. <artifactId>message-mail-api</artifactId>
  79. <version>0.0.1</version>
  80. </dependency>
  81. <!-- httpClient -->
  82. <dependency>
  83. <groupId>org.apache.httpcomponents</groupId>
  84. <artifactId>httpclient</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.httpcomponents</groupId>
  88. <artifactId>httpmime</artifactId>
  89. </dependency>
  90. <!-- 消息-->
  91. <dependency>
  92. <groupId>com.uas.message</groupId>
  93. <artifactId>message-sms-api</artifactId>
  94. <version>0.0.1</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>mysql</groupId>
  98. <artifactId>mysql-connector-java</artifactId>
  99. <scope>runtime</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.uas.sso</groupId>
  103. <artifactId>sso-common</artifactId>
  104. <version>0.0.1-SNAPSHOT</version>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <resources>
  109. <!-- 必须包含这个 -->
  110. <resource>
  111. <directory>${project.basedir}/src/main/resources</directory>
  112. <includes>
  113. <include>**/*</include>
  114. </includes>
  115. </resource>
  116. <!-- 替换Dockerfile占位符 -->
  117. <resource>
  118. <directory>${project.basedir}/src/main/docker</directory>
  119. <filtering>true</filtering>
  120. <includes>
  121. <include>**/Dockerfile</include>
  122. </includes>
  123. <targetPath>${docker.directory}</targetPath>
  124. </resource>
  125. </resources>
  126. <plugins>
  127. <plugin>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-maven-plugin</artifactId>
  130. </plugin>
  131. <plugin>
  132. <groupId>com.spotify</groupId>
  133. <artifactId>docker-maven-plugin</artifactId>
  134. <version>${docker.plugin.version}</version>
  135. <executions>
  136. <execution>
  137. <id>build-image</id>
  138. <phase>package</phase>
  139. <goals>
  140. <goal>build</goal>
  141. </goals>
  142. </execution>
  143. </executions>
  144. <configuration>
  145. <registryUrl>${docker.registry}</registryUrl>
  146. <!-- <dockerHost>${docker.host}</dockerHost>
  147. <baseImage>${docker.registry}/java</baseImage>
  148. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  149. -->
  150. <dockerDirectory>${docker.directory}</dockerDirectory>
  151. <imageName>${docker.registry}/${project.artifactId}</imageName>
  152. <pushImage>${docker.pushImage}</pushImage>
  153. <resources>
  154. <resource>
  155. <targetPath>/</targetPath>
  156. <directory>${project.build.directory}</directory>
  157. <include>${project.build.finalName}.jar</include>
  158. </resource>
  159. </resources>
  160. </configuration>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>