pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. </dependencies>
  92. <dependencyManagement>
  93. <dependencies>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-dependencies</artifactId>
  97. <version>${spring-boot.version}</version>
  98. <type>pom</type>
  99. <scope>import</scope>
  100. </dependency>
  101. </dependencies>
  102. </dependencyManagement>
  103. <!--<build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-compiler-plugin</artifactId>
  108. <version>3.8.1</version>
  109. <configuration>
  110. <source>1.8</source>
  111. <target>1.8</target>
  112. <encoding>UTF-8</encoding>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <version>${spring-boot.version}</version>
  119. <configuration>
  120. <mainClass>com.slibra.monitor.MonitorApplication</mainClass>
  121. <skip>true</skip>
  122. </configuration>
  123. <executions>
  124. <execution>
  125. <id>repackage</id>
  126. <goals>
  127. <goal>repackage</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>-->
  134. <build>
  135. <plugins>
  136. <plugin>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-maven-plugin</artifactId>
  139. <version>2.5.15</version>
  140. <configuration>
  141. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  142. </configuration>
  143. <executions>
  144. <execution>
  145. <goals>
  146. <goal>repackage</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-war-plugin</artifactId>
  154. <version>3.1.0</version>
  155. <configuration>
  156. <failOnMissingWebXml>false</failOnMissingWebXml>
  157. <warName>${project.artifactId}</warName>
  158. </configuration>
  159. </plugin>
  160. </plugins>
  161. <finalName>${project.artifactId}</finalName>
  162. </build>
  163. </project>