pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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.1.7.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.xin</groupId>
  12. <artifactId>shardingsphere-jdbc-study</artifactId>
  13. <version>0.0.1</version>
  14. <name>shardingsphere-jdbc-study</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <shardingsphere.version>4.1.1</shardingsphere.version>
  19. <pagehelper.version>1.3.0</pagehelper.version>
  20. <jxls.version>2.3.0</jxls.version>
  21. <jxls-poi.version>1.0.11</jxls-poi.version>
  22. <jxls-jexcel.version>1.0.6</jxls-jexcel.version>
  23. <jxls-reader.version>2.0.2</jxls-reader.version>
  24. <apache.poi.version>3.15</apache.poi.version>
  25. <poi.ooxml.version>3.15</poi.ooxml.version>
  26. </properties>
  27. <profiles>
  28. <profile>
  29. <id>test</id>
  30. <!--默认激活当前配置-->
  31. <activation>
  32. <activeByDefault>true</activeByDefault>
  33. </activation>
  34. <properties>
  35. <profiles.active>test</profiles.active>
  36. <!-- Docker 配置 -->
  37. <docker.dockerHost>http://192.168.29.131:2375</docker.dockerHost>
  38. <!-- <docker.serviceId>DockerHub</docker.serviceId>-->
  39. <docker.image.version>1.0.0</docker.image.version>
  40. </properties>
  41. </profile>
  42. <!-- <profile>-->
  43. <!-- <id>dev</id>-->
  44. <!-- <properties>-->
  45. <!-- <profiles.active>dev</profiles.active>-->
  46. <!-- &lt;!&ndash; Docker 配置 &ndash;&gt;-->
  47. <!-- <docker.dockerHost>https://49.235.127.212:2375</docker.dockerHost>-->
  48. <!-- &lt;!&ndash; <docker.serviceId>DockerHub</docker.serviceId>&ndash;&gt;-->
  49. <!-- <docker.image.version>1.0.0</docker.image.version>-->
  50. <!-- </properties>-->
  51. <!-- </profile>-->
  52. </profiles>
  53. <dependencies>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-web</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.mybatis.spring.boot</groupId>
  60. <artifactId>mybatis-spring-boot-starter</artifactId>
  61. <version>2.1.2</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>mysql</groupId>
  65. <artifactId>mysql-connector-java</artifactId>
  66. <scope>runtime</scope>
  67. </dependency>
  68. <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>druid</artifactId>
  72. <version>1.1.21</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.baomidou</groupId>
  76. <artifactId>mybatis-plus-boot-starter</artifactId>
  77. <version>3.3.2</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.shardingsphere</groupId>
  81. <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
  82. <version>${shardingsphere.version}</version>
  83. </dependency>
  84. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  85. <dependency>
  86. <groupId>com.alibaba</groupId>
  87. <artifactId>fastjson</artifactId>
  88. <version>1.2.41</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-test</artifactId>
  93. <scope>test</scope>
  94. <exclusions>
  95. <exclusion>
  96. <groupId>org.junit.vintage</groupId>
  97. <artifactId>junit-vintage-engine</artifactId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.jxls</groupId>
  103. <artifactId>jxls</artifactId>
  104. <version>2.10.0</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.jxls</groupId>
  108. <artifactId>jxls-poi</artifactId>
  109. <version>2.10.0</version>
  110. </dependency>
  111. <!--get set-->
  112. <dependency>
  113. <groupId>org.projectlombok</groupId>
  114. <artifactId>lombok</artifactId>
  115. <scope>provided</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.github.pagehelper</groupId>
  119. <artifactId>pagehelper-spring-boot-starter</artifactId>
  120. <version>${pagehelper.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>junit</groupId>
  124. <artifactId>junit</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework</groupId>
  128. <artifactId>spring-test</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-test</artifactId>
  133. </dependency>
  134. </dependencies>
  135. <repositories>
  136. <repository>
  137. <id>aliyun-repos</id>
  138. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  139. <snapshots>
  140. <enabled>false</enabled>
  141. </snapshots>
  142. </repository>
  143. </repositories>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-surefire-plugin</artifactId>
  153. <version>2.18.1</version>
  154. <configuration>
  155. <skipTests>true</skipTests>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>com.spotify</groupId>
  160. <artifactId>docker-maven-plugin</artifactId>
  161. <version>1.2.2</version>
  162. <configuration>
  163. <!-- 镜像名称 guoweixin/exam-->
  164. <imageName>${project.artifactId}</imageName>
  165. <!--指定标签-->
  166. <imageTags>
  167. <imageTag>${docker.image.version}</imageTag>
  168. </imageTags>
  169. <!-- 基础镜像jdk 1.8-->
  170. <baseImage>java</baseImage>
  171. <!-- 制作者提供本人信息 -->
  172. <maintainer>2292011451@qq.com</maintainer>
  173. <!--切换到/ROOT目录 -->
  174. <workdir>/ROOT</workdir>
  175. <cmd>["java", "-version"]</cmd>
  176. <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
  177. <!-- 指定 Dockerfile 路径
  178. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  179. -->
  180. <!--指定远程 docker api地址-->
  181. <dockerHost>${docker.dockerHost}</dockerHost>
  182. <!--证书路劲-->
  183. <!-- <dockerCertPath>D:\software\docker</dockerCertPath>-->
  184. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  185. <resources>
  186. <resource>
  187. <targetPath>/ROOT</targetPath>
  188. <!--用于指定需要复制的根目录,${project.build.directory}表示target目录-->
  189. <directory>${project.build.directory}</directory>
  190. <!--用于指定需要复制的文件。${project.build.finalName}.jar指的是打包后的jar包文件。-->
  191. <include>${project.build.finalName}.jar</include>
  192. </resource>
  193. </resources>
  194. </configuration>
  195. </plugin>
  196. </plugins>
  197. </build>
  198. </project>