pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  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.2.1.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>dataDump</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>dataDump</name>
  15. <description>dataDump</description>
  16. <properties>
  17. <java.version>8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.commons</groupId>
  30. <artifactId>commons-lang3</artifactId>
  31. <version>3.12.0</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.projectlombok</groupId>
  35. <artifactId>lombok</artifactId>
  36. <optional>true</optional>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-test</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>junit</groupId>
  45. <artifactId>junit</artifactId>
  46. <version>4.12</version>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>cn.hutool</groupId>
  51. <artifactId>hutool-all</artifactId>
  52. <version>5.5.0</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>mysql</groupId>
  56. <artifactId>mysql-connector-java</artifactId>
  57. <version>8.0.25</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>commons-net</groupId>
  61. <artifactId>commons-net</artifactId>
  62. <version>3.6</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.taosdata.jdbc</groupId>
  66. <artifactId>taos-jdbcdriver</artifactId>
  67. <version>3.2.4</version>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <resources>
  72. <!-- 配置文件复制到target目录下,不然开发调试的时候会报错 -->
  73. <resource>
  74. <!-- 资源文件的路径,不配置的话默认位于src/main/resources/目录下, -->
  75. <directory>src/main/resources</directory>
  76. <!-- 是否对资源文件进行过滤 -->
  77. <filtering>true</filtering>
  78. <!-- 这里没有配置targetPath,默认复制到outputDirectory目录下 -->
  79. </resource>
  80. <!-- 配置文件放在target/config目录下 -->
  81. <resource>
  82. <directory>src/main/resources</directory>
  83. <targetPath>${project.build.directory}/config</targetPath>
  84. </resource>
  85. </resources>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. <configuration>
  91. <excludes>
  92. <exclude>
  93. <groupId>org.projectlombok</groupId>
  94. <artifactId>lombok</artifactId>
  95. </exclude>
  96. </excludes>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-maven-plugin</artifactId>
  102. <version>2.2.1.RELEASE</version>
  103. <configuration>
  104. <mainClass>com.example.datadump.DataDumpApplication</mainClass>
  105. </configuration>
  106. <executions>
  107. <execution>
  108. <goals>
  109. <goal>repackage</goal>
  110. </goals>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <!-- 打包过程忽略Junit测试 -->
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-surefire-plugin</artifactId>
  118. <version>2.17</version>
  119. <configuration>
  120. <skip>true</skip>
  121. </configuration>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </project>