pom.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>jnpf-boot-common</artifactId>
  7. <groupId>com.jnpf</groupId>
  8. <version>5.2.0-RELEASE</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>jnpf-common-swagger</artifactId>
  13. <dependencies>
  14. <!-- core模块 -->
  15. <dependency>
  16. <groupId>com.jnpf</groupId>
  17. <artifactId>jnpf-common-core</artifactId>
  18. </dependency>
  19. <!--<dependency>
  20. <groupId>com.github.xiaoymin</groupId>
  21. <artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
  22. <version>${knife4j.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.github.xiaoymin</groupId>
  26. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  27. <version>${knife4j.version}</version>
  28. </dependency>-->
  29. </dependencies>
  30. <profiles>
  31. <profile>
  32. <id>boot3</id>
  33. <activation>
  34. <jdk>[17,)</jdk>
  35. </activation>
  36. <dependencies>
  37. <dependency>
  38. <groupId>com.github.xiaoymin</groupId>
  39. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  40. </dependency>
  41. </dependencies>
  42. </profile>
  43. <profile>
  44. <id>boot2</id>
  45. <activation>
  46. <jdk>(,17)</jdk>
  47. </activation>
  48. <dependencies>
  49. <!--引入Knife4j的官方start包,该指南选择Spring Boot版本<3.0,开发者需要注意-->
  50. <dependency>
  51. <groupId>com.github.xiaoymin</groupId>
  52. <artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
  53. </dependency>
  54. </dependencies>
  55. </profile>
  56. </profiles>
  57. </project>