mysql应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
7.0 KiB

6 months ago
  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.4.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.bfd</groupId>
  13. <artifactId>data_process</artifactId>
  14. <version>1.0-SNAPSHOT</version>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-web</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>mysql</groupId>
  25. <artifactId>mysql-connector-java</artifactId>
  26. <scope>runtime</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.projectlombok</groupId>
  30. <artifactId>lombok</artifactId>
  31. <optional>true</optional>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-test</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework</groupId>
  40. <artifactId>spring-jdbc</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.zaxxer</groupId>
  44. <artifactId>HikariCP</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.alibaba.fastjson2</groupId>
  48. <artifactId>fastjson2</artifactId>
  49. <version>2.0.12</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>cn.hutool</groupId>
  53. <artifactId>hutool-all</artifactId>
  54. <version>5.8.27</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.kafka</groupId>
  58. <artifactId>kafka-clients</artifactId>
  59. <version>2.7.1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>de.codecentric</groupId>
  63. <artifactId>spring-boot-admin-client</artifactId>
  64. <version>2.2.4</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.curator</groupId>
  68. <artifactId>curator-framework</artifactId>
  69. <version>5.2.0</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.curator</groupId>
  73. <artifactId>curator-recipes</artifactId>
  74. <version>5.2.0</version>
  75. </dependency>
  76. </dependencies>
  77. <!-- <build>-->
  78. <!-- <plugins>-->
  79. <!-- <plugin>-->
  80. <!-- <groupId>org.springframework.boot</groupId>-->
  81. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  82. <!-- <configuration>-->
  83. <!-- <excludes>-->
  84. <!-- <exclude>-->
  85. <!-- <groupId>org.projectlombok</groupId>-->
  86. <!-- <artifactId>lombok</artifactId>-->
  87. <!-- </exclude>-->
  88. <!-- </excludes>-->
  89. <!-- </configuration>-->
  90. <!-- </plugin>-->
  91. <!-- &lt;!&ndash; 使用 Maven Assembly 插件 &ndash;&gt;-->
  92. <!-- </plugins>-->
  93. <!-- </build>-->
  94. <build>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-jar-plugin</artifactId>
  99. <configuration>
  100. <!--不打入jar包的文件类型或者路径-->
  101. <excludes>
  102. <exclude>*.properties</exclude>
  103. <exclude>*.yml</exclude>
  104. <exclude>*.yaml</exclude>
  105. </excludes>
  106. <archive>
  107. <manifest>
  108. <!-- 执行的主程序路径 -->
  109. <mainClass>com.bfd.dataprocess.DataProcessApplication</mainClass>
  110. <!--是否要把第三方jar放到manifest的classpath中-->
  111. <addClasspath>true</addClasspath>
  112. <!--生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/-->
  113. <classpathPrefix>lib/</classpathPrefix>
  114. <!-- 打包时 MANIFEST.MF 文件不记录的时间戳版本 -->
  115. <useUniqueVersions>false</useUniqueVersions>
  116. </manifest>
  117. <manifestEntries>
  118. <!-- 在 Class-Path 下添加配置文件的路径 -->
  119. <Class-Path>config/</Class-Path>
  120. </manifestEntries>
  121. </archive>
  122. </configuration>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-dependency-plugin</artifactId>
  127. <executions>
  128. <execution>
  129. <id>copy</id>
  130. <phase>package</phase>
  131. <goals>
  132. <goal>copy-dependencies</goal>
  133. </goals>
  134. <configuration>
  135. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. <plugin>
  141. <artifactId>maven-resources-plugin</artifactId>
  142. <executions>
  143. <execution>
  144. <id>copy-resources</id>
  145. <phase>package</phase>
  146. <goals>
  147. <goal>copy-resources</goal>
  148. </goals>
  149. <configuration>
  150. <resources>
  151. <!--把配置文件打包到指定路径-->
  152. <resource>
  153. <directory>src/main/resources/</directory>
  154. <includes>
  155. <include>*.properties</include>
  156. <include>*.yml</include>
  157. <exclude>*.yaml</exclude>
  158. </includes>
  159. </resource>
  160. </resources>
  161. <outputDirectory>${project.build.directory}/config</outputDirectory>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </project>