pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. <groupId>com.xlht</groupId>
  6. <artifactId>xlht-project</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>xlht-project</name>
  9. <description>xlht-project</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <spring-boot.version>2.6.13</spring-boot.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter</artifactId>
  20. </dependency>
  21. <!-- SpringBoot Web容器 -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.aliyun</groupId>
  28. <artifactId>aliyun-java-sdk-core</artifactId>
  29. <version>4.6.1</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.junit.platform</groupId>
  33. <artifactId>junit-platform-launcher</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>commons-net</groupId>
  38. <artifactId>commons-net</artifactId>
  39. <version>3.9.0</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-test</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.projectlombok</groupId>
  48. <artifactId>lombok</artifactId>
  49. </dependency>
  50. <!-- MyBatis Spring Boot Starter -->
  51. <dependency>
  52. <groupId>org.mybatis.spring.boot</groupId>
  53. <artifactId>mybatis-spring-boot-starter</artifactId>
  54. <version>2.2.2</version>
  55. </dependency>
  56. <!-- MySQL数据库驱动 -->
  57. <dependency>
  58. <groupId>mysql</groupId>
  59. <artifactId>mysql-connector-java</artifactId>
  60. <scope>runtime</scope>
  61. </dependency>
  62. <!-- SQL Server Driver -->
  63. <dependency>
  64. <groupId>com.microsoft.sqlserver</groupId>
  65. <artifactId>mssql-jdbc</artifactId>
  66. <!--<scope>runtime</scope>-->
  67. <version>8.1.0.jre8-preview</version>
  68. </dependency>
  69. <!-- https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2 -->
  70. <dependency>
  71. <groupId>com.alibaba.fastjson2</groupId>
  72. <artifactId>fastjson2</artifactId>
  73. <version>2.0.51</version>
  74. </dependency>
  75. <!-- pagehelper 分页插件 -->
  76. <dependency>
  77. <groupId>com.github.pagehelper</groupId>
  78. <artifactId>pagehelper-spring-boot-starter</artifactId>
  79. <version>1.4.6</version>
  80. <exclusions>
  81. <exclusion>
  82. <artifactId>mybatis-spring</artifactId>
  83. <groupId>org.mybatis</groupId>
  84. </exclusion>
  85. <exclusion>
  86. <artifactId>mybatis</artifactId>
  87. <groupId>org.mybatis</groupId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
  92. <dependency>
  93. <groupId>com.alibaba</groupId>
  94. <artifactId>druid-spring-boot-starter</artifactId>
  95. <version>1.2.16</version>
  96. </dependency>
  97. </dependencies>
  98. <dependencyManagement>
  99. <dependencies>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-dependencies</artifactId>
  103. <version>${spring-boot.version}</version>
  104. <type>pom</type>
  105. <scope>import</scope>
  106. </dependency>
  107. </dependencies>
  108. </dependencyManagement>
  109. <!--<build>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-compiler-plugin</artifactId>
  114. <version>3.8.1</version>
  115. <configuration>
  116. <source>1.8</source>
  117. <target>1.8</target>
  118. <encoding>UTF-8</encoding>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <version>${spring-boot.version}</version>
  125. <configuration>
  126. <mainClass>com.slibra.monitor.MonitorApplication</mainClass>
  127. <skip>true</skip>
  128. </configuration>
  129. <executions>
  130. <execution>
  131. <id>repackage</id>
  132. <goals>
  133. <goal>repackage</goal>
  134. </goals>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. </plugins>
  139. </build>-->
  140. <build>
  141. <plugins>
  142. <plugin>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-maven-plugin</artifactId>
  145. <version>2.5.15</version>
  146. <configuration>
  147. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  148. </configuration>
  149. <executions>
  150. <execution>
  151. <goals>
  152. <goal>repackage</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-war-plugin</artifactId>
  160. <version>3.1.0</version>
  161. <configuration>
  162. <failOnMissingWebXml>false</failOnMissingWebXml>
  163. <warName>${project.artifactId}</warName>
  164. </configuration>
  165. </plugin>
  166. </plugins>
  167. <finalName>${project.artifactId}</finalName>
  168. </build>
  169. </project>