pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. <parent>
  6. <artifactId>forge-server</artifactId>
  7. <groupId>com.mdframe.forge</groupId>
  8. <version>${revision}</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <artifactId>forge-framework</artifactId>
  12. <name>forge-framework</name>
  13. <description>forge-framework</description>
  14. <packaging>pom</packaging>
  15. <version>${revision}</version>
  16. <properties>
  17. <java.version>17</java.version>
  18. <revision>1.0.0</revision>
  19. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  20. <maven-compiler-plugin.verison>3.11.0</maven-compiler-plugin.verison>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
  23. <mapstruct-plus.version>1.4.4</mapstruct-plus.version>
  24. <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
  25. <lombok.version>1.18.34</lombok.version>
  26. <mybatis-plus.version>3.5.7</mybatis-plus.version>
  27. </properties>
  28. <modules>
  29. <module>forge-dependencies</module>
  30. <module>forge-starter-parent</module>
  31. <module>forge-plugin-parent</module>
  32. </modules>
  33. <dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.mdframe.forge</groupId>
  37. <artifactId>forge-dependencies</artifactId>
  38. <version>${project.version}</version>
  39. <type>pom</type>
  40. <scope>import</scope>
  41. </dependency>
  42. </dependencies>
  43. </dependencyManagement>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-compiler-plugin</artifactId>
  49. <version>${maven-compiler-plugin.verison}</version>
  50. <configuration>
  51. <source>${java.version}</source>
  52. <target>${java.version}</target>
  53. <encoding>${project.build.sourceEncoding}</encoding>
  54. <annotationProcessorPaths>
  55. <path>
  56. <groupId>com.github.therapi</groupId>
  57. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  58. <version>${therapi-javadoc.version}</version>
  59. </path>
  60. <path>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. <version>${lombok.version}</version>
  64. </path>
  65. <path>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-configuration-processor</artifactId>
  68. <version>${spring-boot.version}</version>
  69. </path>
  70. <path>
  71. <groupId>io.github.linpeilie</groupId>
  72. <artifactId>mapstruct-plus-processor</artifactId>
  73. <version>${mapstruct-plus.version}</version>
  74. </path>
  75. <path>
  76. <groupId>org.projectlombok</groupId>
  77. <artifactId>lombok-mapstruct-binding</artifactId>
  78. <version>${mapstruct-plus.lombok.version}</version>
  79. </path>
  80. </annotationProcessorPaths>
  81. <compilerArgs>
  82. <arg>-parameters</arg>
  83. </compilerArgs>
  84. </configuration>
  85. </plugin>
  86. <!-- 统一版本号管理 -->
  87. <plugin>
  88. <groupId>org.codehaus.mojo</groupId>
  89. <artifactId>flatten-maven-plugin</artifactId>
  90. <version>${flatten-maven-plugin.version}</version>
  91. <configuration>
  92. <updatePomFile>true</updatePomFile>
  93. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  94. </configuration>
  95. <executions>
  96. <execution>
  97. <id>flatten</id>
  98. <phase>process-resources</phase>
  99. <goals>
  100. <goal>flatten</goal>
  101. </goals>
  102. </execution>
  103. <execution>
  104. <id>flatten.clean</id>
  105. <phase>clean</phase>
  106. <goals>
  107. <goal>clean</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. </project>