pom.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.jnpf</groupId>
  6. <artifactId>jnpf-dependencies</artifactId>
  7. <version>6.0.0-RELEASE</version>
  8. </parent>
  9. <artifactId>jnpf-file-core-starter</artifactId>
  10. <version>6.0.0-RELEASE</version>
  11. <packaging>pom</packaging>
  12. <modules>
  13. <module>jnpf-file-core-spring</module>
  14. <module>jnpf-file-core</module>
  15. </modules>
  16. <properties>
  17. <!--使用5.0.0版本, 新版本使用新JDK编译, 在JDK8的情况下无法编译-->
  18. <jakarata.servlet-api.version>5.0.0</jakarata.servlet-api.version>
  19. <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
  20. <!--region 3rd SDK-->
  21. <!--endregion-->
  22. <!--region Maven Plugins-->
  23. <!--endregion-->
  24. </properties>
  25. <dependencyManagement>
  26. <dependencies>
  27. <!--region 1rd-->
  28. <dependency>
  29. <groupId>com.jnpf</groupId>
  30. <artifactId>jnpf-file-core-spring</artifactId>
  31. <version>${project.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.jnpf</groupId>
  35. <artifactId>jnpf-file-core</artifactId>
  36. <version>${project.version}</version>
  37. </dependency>
  38. <!--endregion-->
  39. </dependencies>
  40. </dependencyManagement>
  41. <profiles>
  42. <profile>
  43. <id>boot3</id>
  44. <activation>
  45. <jdk>[17,)</jdk>
  46. </activation>
  47. <properties>
  48. <!--这里修改JDK版本号, 1.8, 11, 17-->
  49. <java.version>21</java.version>
  50. <!--最高版本语言特性-->
  51. <maven.compiler.source>1.8</maven.compiler.source>
  52. <!--最低运行JDK版本-->
  53. <maven.compiler.target>1.8</maven.compiler.target>
  54. </properties>
  55. </profile>
  56. <profile>
  57. <id>boot2</id>
  58. <activation>
  59. <jdk>(,17)</jdk>
  60. </activation>
  61. <properties>
  62. <!--这里修改JDK版本号, 1.8, 11, 17-->
  63. <java.version>1.8</java.version>
  64. <!--最高版本语言特性-->
  65. <maven.compiler.source>1.8</maven.compiler.source>
  66. <!--最低运行JDK版本-->
  67. <maven.compiler.target>1.8</maven.compiler.target>
  68. </properties>
  69. </profile>
  70. </profiles>
  71. </project>