pom.xml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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>com.zqt.ccj</groupId>
  7. <artifactId>patrol</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>patrol-dependencies</module>
  12. <module>patrol-framework</module>
  13. <!-- Server 主项目 -->
  14. <module>patrol-server</module>
  15. <!-- 各种 module 拓展 -->
  16. <module>patrol-module-member</module>
  17. <module>patrol-module-bpm</module>
  18. <module>patrol-module-system</module>
  19. <module>patrol-module-infra</module>
  20. <module>patrol-module-pay</module>
  21. <module>patrol-module-mall</module>
  22. <module>patrol-module-visualization</module>
  23. </modules>
  24. <name>${project.artifactId}</name>
  25. <description>芋道项目基础脚手架</description>
  26. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  27. <properties>
  28. <revision>1.6.4-snapshot</revision>
  29. <!-- Maven 相关 -->
  30. <java.version>1.8</java.version>
  31. <maven.compiler.source>${java.version}</maven.compiler.source>
  32. <maven.compiler.target>${java.version}</maven.compiler.target>
  33. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  34. <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
  35. <!-- 看看咋放到 bom 里 -->
  36. <lombok.version>1.18.20</lombok.version>
  37. <mapstruct.version>1.4.1.Final</mapstruct.version>
  38. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  39. </properties>
  40. <dependencyManagement>
  41. <dependencies>
  42. <dependency>
  43. <groupId>com.zqt.ccj</groupId>
  44. <artifactId>patrol-dependencies</artifactId>
  45. <version>${revision}</version>
  46. <type>pom</type>
  47. <scope>import</scope>
  48. </dependency>
  49. </dependencies>
  50. </dependencyManagement>
  51. <build>
  52. <pluginManagement>
  53. <plugins>
  54. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  55. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-surefire-plugin</artifactId>
  59. <version>${maven-surefire-plugin.version}</version>
  60. </plugin>
  61. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-compiler-plugin</artifactId>
  65. <version>${maven-compiler-plugin.version}</version>
  66. <configuration>
  67. <annotationProcessorPaths>
  68. <path>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <version>${lombok.version}</version>
  72. </path>
  73. <path>
  74. <groupId>org.mapstruct</groupId>
  75. <artifactId>mapstruct-processor</artifactId>
  76. <version>${mapstruct.version}</version>
  77. </path>
  78. </annotationProcessorPaths>
  79. </configuration>
  80. </plugin>
  81. </plugins>
  82. </pluginManagement>
  83. </build>
  84. <!-- 使用 aliyun 的 Maven 源,提升下载速度 -->
  85. <repositories>
  86. <repository>
  87. <id>aliyunmaven</id>
  88. <name>aliyun</name>
  89. <url>https://maven.aliyun.com/repository/public</url>
  90. </repository>
  91. </repositories>
  92. </project>