pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.2.6.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.huaxu.zoniot</groupId>
  13. <artifactId>meter-reading-data-migrate</artifactId>
  14. <version>1.0</version>
  15. <description>抄表数据迁移程序</description>
  16. <properties>
  17. <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <!--支持aop注解功能-->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-aop</artifactId>
  31. </dependency>
  32. <!--解决spring boot configuration annotation processor no found in classpath提示-->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-configuration-processor</artifactId>
  36. <optional>true</optional>
  37. </dependency>
  38. <!-- Redis -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-data-redis</artifactId>
  42. </dependency>
  43. <!-- FastJSON -->
  44. <dependency>
  45. <groupId>com.alibaba</groupId>
  46. <artifactId>fastjson</artifactId>
  47. <version>1.2.41</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.projectlombok</groupId>
  51. <artifactId>lombok</artifactId>
  52. <optional>true</optional>
  53. </dependency>
  54. <!--Common Lang-->
  55. <dependency>
  56. <groupId>org.apache.commons</groupId>
  57. <artifactId>commons-lang3</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.commons</groupId>
  61. <artifactId>commons-pool2</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>commons-collections</groupId>
  65. <artifactId>commons-collections</artifactId>
  66. <version>3.2.2</version>
  67. </dependency>
  68. <!-- 糊涂工具包 -->
  69. <dependency>
  70. <groupId>cn.hutool</groupId>
  71. <artifactId>hutool-all</artifactId>
  72. <version>5.5.4</version>
  73. </dependency>
  74. <!--druid数据源-->
  75. <dependency>
  76. <groupId>com.alibaba</groupId>
  77. <artifactId>druid</artifactId>
  78. <version>1.0.26</version>
  79. </dependency>
  80. <!--jdbc-->
  81. <dependency>
  82. <groupId>org.springframework</groupId>
  83. <artifactId>spring-jdbc</artifactId>
  84. <version>5.1.3.RELEASE</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>mysql</groupId>
  88. <artifactId>mysql-connector-java</artifactId>
  89. <version>8.0.11</version>
  90. </dependency>
  91. <!-- mybatis -->
  92. <dependency>
  93. <groupId>org.mybatis.spring.boot</groupId>
  94. <artifactId>mybatis-spring-boot-starter</artifactId>
  95. <version>2.1.3</version>
  96. </dependency>
  97. <!-- mongodb -->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  101. </dependency>
  102. <!-- spring batch -->
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-batch</artifactId>
  106. <version>2.2.5.RELEASE</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>javax.validation</groupId>
  110. <artifactId>validation-api</artifactId>
  111. </dependency>
  112. <!-- httpclient -->
  113. <dependency>
  114. <groupId>org.apache.httpcomponents</groupId>
  115. <artifactId>httpclient</artifactId>
  116. <version>4.5.6</version>
  117. </dependency>
  118. <!--
  119. <dependency>
  120. <groupId>com.huaxu.zoniot</groupId>
  121. <artifactId>meter-reading-common</artifactId>
  122. <version>1.0</version>
  123. </dependency>
  124. -->
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-starter-test</artifactId>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.projectlombok</groupId>
  132. <artifactId>lombok</artifactId>
  133. <optional>true</optional>
  134. </dependency>
  135. <!-- Swagger -->
  136. <dependency>
  137. <groupId>io.springfox</groupId>
  138. <artifactId>springfox-swagger2</artifactId>
  139. <version>2.7.0</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>io.springfox</groupId>
  143. <artifactId>springfox-swagger-ui</artifactId>
  144. <version>2.7.0</version>
  145. </dependency>
  146. </dependencies>
  147. <build>
  148. <finalName>
  149. ${project.artifactId}-${project.version}-${maven.build.timestamp}
  150. </finalName>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-maven-plugin</artifactId>
  155. </plugin>
  156. <!-- 1、设置jar的入口类 -->
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-jar-plugin</artifactId>
  160. <configuration>
  161. <archive>
  162. <manifest>
  163. <addClasspath>true</addClasspath>
  164. <classpathPrefix>lib/</classpathPrefix>
  165. <mainClass>com.huaxu.zoniot.DataMigrateApplication</mainClass>
  166. </manifest>
  167. </archive>
  168. </configuration>
  169. </plugin>
  170. <!--2、把附属的jar打到jar内部的lib目录中 -->
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-dependency-plugin</artifactId>
  174. <executions>
  175. <execution>
  176. <id>copy-dependencies</id>
  177. <phase>package</phase>
  178. <goals>
  179. <goal>copy-dependencies</goal>
  180. </goals>
  181. <configuration>
  182. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <!-- 3、打包过程忽略Junit测试 -->
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-surefire-plugin</artifactId>
  191. <configuration>
  192. <skip>true</skip>
  193. </configuration>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </project>