pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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.jyxt</groupId>
  6. <artifactId>GetDataByRESTful</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>GetDataByRESTful</name>
  9. <description>GetDataByRESTful</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.7.6</spring-boot.version>
  15. <springdoc-openapi.version>1.6.14</springdoc-openapi.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-jdbc</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.mysql</groupId>
  28. <artifactId>mysql-connector-j</artifactId>
  29. <scope>runtime</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.projectlombok</groupId>
  33. <artifactId>lombok</artifactId>
  34. <scope>provided</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-test</artifactId>
  39. <scope>test</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-web</artifactId>
  44. </dependency>
  45. <!-- SpringDoc OpenAPI UI -->
  46. <dependency>
  47. <groupId>org.springdoc</groupId>
  48. <artifactId>springdoc-openapi-ui</artifactId>
  49. <version>${springdoc-openapi.version}</version>
  50. </dependency>
  51. </dependencies>
  52. <dependencyManagement>
  53. <dependencies>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-dependencies</artifactId>
  57. <version>${spring-boot.version}</version>
  58. <type>pom</type>
  59. <scope>import</scope>
  60. <exclusions>
  61. <!-- 排除冲突的SLF4J绑定 -->
  62. <exclusion>
  63. <groupId>org.slf4j</groupId>
  64. <artifactId>slf4j-log4j12</artifactId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. </dependencies>
  69. </dependencyManagement>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <version>3.8.1</version>
  76. <configuration>
  77. <source>1.8</source>
  78. <target>1.8</target>
  79. <encoding>UTF-8</encoding>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-maven-plugin</artifactId>
  85. <version>${spring-boot.version}</version>
  86. <configuration>
  87. <mainClass>com.jyxt.getdatabyrestful.GetDataByRESTfulApplication</mainClass>
  88. <skip>true</skip>
  89. </configuration>
  90. <executions>
  91. <execution>
  92. <id>repackage</id>
  93. <goals>
  94. <goal>repackage</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. </plugins>
  100. </build>
  101. </project>