pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.6.3</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.sw</groupId>
  12. <artifactId>mask</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>mask</name>
  15. <packaging>jar</packaging>
  16. <description>口罩秒杀</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <docker.image.prefix>mask</docker.image.prefix>
  20. <!-- <elasticsearch.version>8.0.1</elasticsearch.version>-->
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <!-- <dependency>-->
  28. <!-- <groupId>org.springframework.boot</groupId>-->
  29. <!-- <artifactId>spring-boot-starter</artifactId>-->
  30. <!-- </dependency>-->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-test</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.alibaba</groupId>
  38. <artifactId>druid</artifactId>
  39. <version>1.2.5</version>
  40. </dependency>
  41. <!-- mysql -->
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. </dependency>
  46. <!-- mybatis plus -->
  47. <dependency>
  48. <groupId>com.baomidou</groupId>
  49. <artifactId>mybatis-plus-boot-starter</artifactId>
  50. <version>3.5.1</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-activemq</artifactId>
  55. </dependency>
  56. <!-- lombok -->
  57. <dependency>
  58. <groupId>org.projectlombok</groupId>
  59. <artifactId>lombok</artifactId>
  60. <optional>true</optional>
  61. </dependency>
  62. <!-- redis -->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-data-redis</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>junit</groupId>
  69. <artifactId>junit</artifactId>
  70. </dependency>
  71. <!-- redisson -->
  72. <dependency>
  73. <groupId>org.redisson</groupId>
  74. <artifactId>redisson</artifactId>
  75. <version>3.16.7</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.redisson</groupId>
  79. <artifactId>redisson-spring-boot-starter</artifactId>
  80. <version>3.16.7</version>
  81. </dependency>
  82. <!--hutool工具类-->
  83. <!-- <dependency>-->
  84. <!-- <groupId>cn.hutool</groupId>-->
  85. <!-- <artifactId>hutool-core</artifactId>-->
  86. <!-- <version>4.4.0</version>-->
  87. <!-- </dependency>-->
  88. <!-- <dependency>-->
  89. <!-- <groupId>cn.hutool</groupId>-->
  90. <!-- <artifactId>hutool-all</artifactId>-->
  91. <!-- <version>4.5.7</version>-->
  92. <!-- </dependency>-->
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.alibaba</groupId>
  103. <artifactId>fastjson</artifactId>
  104. <version>1.2.75</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.jsoup</groupId>
  108. <artifactId>jsoup</artifactId>
  109. <version>1.11.2</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.rxtx</groupId>
  113. <artifactId>rxtx</artifactId>
  114. <version>2.1.7</version>
  115. </dependency>
  116. <!-- swagger -->
  117. <dependency>
  118. <groupId>io.springfox</groupId>
  119. <artifactId>springfox-swagger-ui</artifactId>
  120. <version>3.0.0</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>io.springfox</groupId>
  124. <artifactId>springfox-boot-starter</artifactId>
  125. <version>3.0.0</version>
  126. </dependency>
  127. </dependencies>
  128. <build>
  129. <plugins>
  130. <plugin>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-maven-plugin</artifactId>
  133. <version>2.6.0</version>
  134. </plugin>
  135. <plugin>
  136. <groupId>com.spotify</groupId>
  137. <artifactId>docker-maven-plugin</artifactId>
  138. <version>1.0.0</version>
  139. <configuration>
  140. <!-- 镜像名称 guoweixin/exam-->
  141. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  142. <!--指定标签-->
  143. <imageTags>
  144. <imageTag>latest</imageTag>
  145. </imageTags>
  146. <!-- 基础镜像jdk 1.8-->
  147. <baseImage>java</baseImage>
  148. <!-- 制作者提供本人信息 -->
  149. <maintainer>yegang</maintainer>
  150. <!--切换到/ROOT目录 -->
  151. <workdir>/ROOT</workdir>
  152. <cmd>["java", "-version"]</cmd>
  153. <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
  154. <!-- 指定 Dockerfile 路径
  155. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  156. -->
  157. <!--指定远程 docker api地址-->
  158. <dockerHost>http://192.168.20.87:2375</dockerHost>
  159. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  160. <resources>
  161. <resource>
  162. <targetPath>/ROOT</targetPath>
  163. <!--用于指定需要复制的根目录,${project.build.directory}表示target目录-->
  164. <directory>${project.build.directory}</directory>
  165. <!--用于指定需要复制的文件。${project.build.finalName}.jar指的是打包后的jar
  166. 包文件。-->
  167. <include>${project.build.finalName}.jar</include>
  168. </resource>
  169. </resources>
  170. </configuration>
  171. </plugin>
  172. </plugins>
  173. </build>
  174. </project>