pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>cn.iocoder.boot</groupId>
  7. <artifactId>yudao</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>yudao-dependencies</module>
  12. <module>yudao-framework</module>
  13. <module>yudao-admin-server</module>
  14. </modules>
  15. <name>yudao</name>
  16. <description>芋道项目基础脚手架</description>
  17. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  18. <properties>
  19. <revision>1.0.0</revision>
  20. <!-- Maven 相关 -->
  21. <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
  22. <!-- 统一依赖管理 -->
  23. <spring.boot.version>2.4.4</spring.boot.version>
  24. <!-- 工具类相关 -->
  25. <lombok.version>1.16.14</lombok.version>
  26. <mapstruct.version>1.4.1.Final</mapstruct.version>
  27. </properties>
  28. <dependencyManagement>
  29. <dependencies>
  30. <dependency>
  31. <groupId>cn.iocoder.boot</groupId>
  32. <artifactId>yudao-dependencies</artifactId>
  33. <version>${revision}</version>
  34. <type>pom</type>
  35. <scope>import</scope>
  36. </dependency>
  37. </dependencies>
  38. </dependencyManagement>
  39. <build>
  40. <pluginManagement>
  41. <plugins>
  42. <!-- 打包 -->
  43. <plugin>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-maven-plugin</artifactId>
  46. <version>${spring.boot.version}</version>
  47. <configuration>
  48. <fork>true</fork>
  49. </configuration>
  50. <executions>
  51. <execution>
  52. <goals>
  53. <goal>repackage</goal> <!-- 将原来的 jar 打入其中 -->
  54. </goals>
  55. </execution>
  56. </executions>
  57. </plugin>
  58. <!-- 提供给 mapstruct 使用 -->
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-compiler-plugin</artifactId>
  62. <version>${maven-compiler-plugin.version}</version>
  63. <configuration>
  64. <source>${java.version}</source>
  65. <target>${java.version}</target>
  66. <annotationProcessorPaths>
  67. <path>
  68. <groupId>org.mapstruct</groupId>
  69. <artifactId>mapstruct-processor</artifactId>
  70. <version>${mapstruct.version}</version>
  71. </path>
  72. <path>
  73. <groupId>org.projectlombok</groupId>
  74. <artifactId>lombok</artifactId>
  75. <version>${lombok.version}</version>
  76. </path>
  77. </annotationProcessorPaths>
  78. </configuration>
  79. </plugin>
  80. </plugins>
  81. </pluginManagement>
  82. </build>
  83. </project>