pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. <version>2.6.0</version>
  118. </plugin>
  119. <plugin>
  120. <groupId>com.spotify</groupId>
  121. <artifactId>docker-maven-plugin</artifactId>
  122. <version>1.0.0</version>
  123. <configuration>
  124. <!-- 镜像名称 guoweixin/exam-->
  125. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  126. <!--指定标签-->
  127. <imageTags>
  128. <imageTag>latest</imageTag>
  129. </imageTags>
  130. <!-- 基础镜像jdk 1.8-->
  131. <baseImage>java</baseImage>
  132. <!-- 制作者提供本人信息 -->
  133. <maintainer>yegang</maintainer>
  134. <!--切换到/ROOT目录 -->
  135. <workdir>/ROOT</workdir>
  136. <cmd>["java", "-version"]</cmd>
  137. <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
  138. <!-- 指定 Dockerfile 路径
  139. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  140. -->
  141. <!--指定远程 docker api地址-->
  142. <dockerHost>http://192.168.20.87:2375</dockerHost>
  143. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  144. <resources>
  145. <resource>
  146. <targetPath>/ROOT</targetPath>
  147. <!--用于指定需要复制的根目录,${project.build.directory}表示target目录-->
  148. <directory>${project.build.directory}</directory>
  149. <!--用于指定需要复制的文件。${project.build.finalName}.jar指的是打包后的jar
  150. 包文件。-->
  151. <include>${project.build.finalName}.jar</include>
  152. </resource>
  153. </resources>
  154. </configuration>
  155. </plugin>
  156. </plugins>
  157. </build>
  158. </project>