pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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.yizhu</groupId>
  6. <artifactId>supervise-service</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>supervise-service</name>
  9. <description>supervise-service</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. <fastjson.version>2.0.15</fastjson.version>
  16. <swagger2.version>2.9.2</swagger2.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>ngari-supervision</groupId>
  21. <artifactId>ngari-supervision-1.7</artifactId>
  22. <version>1.7-SNAPSHOT</version>
  23. <scope>system</scope>
  24. <systemPath>${project.basedir}/src/main/resources/lib/ngari-supervision-1.7-SNAPSHOT.jar</systemPath>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springdoc</groupId>
  28. <artifactId>springdoc-openapi-ui</artifactId>
  29. <version>1.6.9</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. </dependency>
  35. <!-- <dependency>-->
  36. <!-- <groupId>org.springframework.boot</groupId>-->
  37. <!-- <artifactId>spring-boot-devtools</artifactId>-->
  38. <!-- <scope>runtime</scope>-->
  39. <!-- <optional>true</optional>-->
  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>com.alibaba.fastjson2</groupId>
  48. <artifactId>fastjson2</artifactId>
  49. <version>${fastjson.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>cn.hutool</groupId>
  53. <artifactId>hutool-all</artifactId>
  54. <version>5.8.3</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.projectlombok</groupId>
  58. <artifactId>lombok</artifactId>
  59. </dependency>
  60. </dependencies>
  61. <dependencyManagement>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-dependencies</artifactId>
  66. <version>${spring-boot.version}</version>
  67. <type>pom</type>
  68. <scope>import</scope>
  69. </dependency>
  70. </dependencies>
  71. </dependencyManagement>
  72. <build>
  73. <plugins>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-compiler-plugin</artifactId>
  77. <version>3.8.1</version>
  78. <configuration>
  79. <source>1.8</source>
  80. <target>1.8</target>
  81. <encoding>UTF-8</encoding>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-maven-plugin</artifactId>
  87. <version>${spring-boot.version}</version>
  88. <configuration>
  89. <includeSystemScope>true</includeSystemScope>
  90. <mainClass>com.yizhu.supervise.SuperviseServiceApplication</mainClass>
  91. </configuration>
  92. <executions>
  93. <execution>
  94. <id>repackage</id>
  95. <goals>
  96. <goal>repackage</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <!--includeSystemScope代表maven打包时会将外部引入的jar包(比如在根目录下或resource文件下新加外部jar包)打包到项目jar-->
  105. <configuration>
  106. <includeSystemScope>true</includeSystemScope>
  107. </configuration>
  108. </plugin>
  109. </plugins>
  110. <!-- 加载资源文件-->
  111. <resources>
  112. <resource>
  113. <directory>src/main/resources</directory>
  114. </resource>
  115. <resource>
  116. <directory>src/main/java</directory>
  117. </resource>
  118. </resources>
  119. </build>
  120. </project>