pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. <exclusion>
  62. <groupId>org.slf4j</groupId>
  63. <artifactId>slf4j-log4j12</artifactId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.projectlombok</groupId>
  69. <artifactId>lombok</artifactId>
  70. <version>1.18.24</version>
  71. <scope>provided</scope>
  72. </dependency>
  73. </dependencies>
  74. </dependencyManagement>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <version>3.8.1</version>
  81. <configuration>
  82. <source>1.8</source>
  83. <target>1.8</target>
  84. <encoding>UTF-8</encoding>
  85. </configuration>
  86. </plugin>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. <version>${spring-boot.version}</version>
  91. <configuration>
  92. <mainClass>com.jyxt.getdatabyrestful.GetDataByRESTfulApplication</mainClass>
  93. </configuration>
  94. <executions>
  95. <execution>
  96. <id>repackage</id>
  97. <goals>
  98. <goal>repackage</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-surefire-plugin</artifactId>
  106. <version>2.22.2</version>
  107. <configuration>
  108. <skipTests>true</skipTests>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. </project>