pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. <name>spring-boot-platform</name>
  7. <groupId>com.platform</groupId>
  8. <artifactId>spring-boot-sb-base</artifactId>
  9. <packaging>pom</packaging>
  10. <version>1.0-SNAPSHOT</version>
  11. <modules>
  12. <module>platform-common</module>
  13. <module>platform-dao</module>
  14. <module>platform-service</module>
  15. <module>platform-rest</module>
  16. <module>platform-office</module>
  17. <module>platform-activiti</module>
  18. </modules>
  19. <properties>
  20. <pagehelper.version>1.2.3</pagehelper.version>
  21. <spring-boot.version>2.1.6.RELEASE</spring-boot.version>
  22. <maven.compiler.source>1.8</maven.compiler.source>
  23. <maven.compiler.target>1.8</maven.compiler.target>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <lombok.version>1.18.6</lombok.version>
  26. <fastjson.version>1.2.53</fastjson.version>
  27. <security.oauth.version>2.3.5.RELEASE</security.oauth.version>
  28. <security.oauth.auto.version>2.1.2.RELEASE</security.oauth.auto.version>
  29. <jackson.modules>2.9.8</jackson.modules>
  30. <commons.lang.version>2.6</commons.lang.version>
  31. <slf4j.version>1.7.26</slf4j.version>
  32. </properties>
  33. <dependencies>
  34. <!-- 图片缩略图 -->
  35. <dependency>
  36. <groupId>net.coobird</groupId>
  37. <artifactId>thumbnailator</artifactId>
  38. <version>0.4.8</version>
  39. </dependency>
  40. <!--Lombok-->
  41. <dependency>
  42. <groupId>org.projectlombok</groupId>
  43. <artifactId>lombok</artifactId>
  44. <version>${lombok.version}</version>
  45. <scope>provided</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>ch.qos.logback</groupId>
  49. <artifactId>logback-classic</artifactId>
  50. <version>1.2.3</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.slf4j</groupId>
  54. <artifactId>jcl-over-slf4j</artifactId>
  55. <version>${slf4j.version}</version>
  56. </dependency>
  57. <!--jackson模块-->
  58. <dependency>
  59. <groupId>com.fasterxml.jackson.module</groupId>
  60. <artifactId>jackson-modules-java8</artifactId>
  61. <version>${jackson.modules}</version>
  62. <type>pom</type>
  63. <scope>import</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>commons-lang</groupId>
  67. <artifactId>commons-lang</artifactId>
  68. <version>${commons.lang.version}</version>
  69. </dependency>
  70. </dependencies>
  71. <dependencyManagement>
  72. <dependencies>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-dependencies</artifactId>
  76. <version>${spring-boot.version}</version>
  77. <type>pom</type>
  78. <scope>import</scope>
  79. </dependency>
  80. <!--稳定版本,替代spring security bom内置-->
  81. <dependency>
  82. <groupId>org.springframework.security.oauth</groupId>
  83. <artifactId>spring-security-oauth2</artifactId>
  84. <version>${security.oauth.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.security.oauth.boot</groupId>
  88. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  89. <version>${security.oauth.auto.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-devtools</artifactId>
  94. <optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
  95. <scope>runtime</scope>
  96. </dependency>
  97. </dependencies>
  98. </dependencyManagement>
  99. <build>
  100. <finalName>${project.name}</finalName>
  101. <pluginManagement>
  102. <plugins>
  103. <plugin>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-maven-plugin</artifactId>
  106. <version>${spring-boot.version}</version>
  107. <configuration>
  108. <finalName>${project.build.finalName}</finalName>
  109. </configuration>
  110. <executions>
  111. <execution>
  112. <goals>
  113. <goal>repackage</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. </plugins>
  119. </pluginManagement>
  120. <plugins>
  121. <plugin>
  122. <artifactId>maven-compiler-plugin</artifactId>
  123. <version>3.8.0</version>
  124. <configuration>
  125. <target>${maven.compiler.target}</target>
  126. <source>${maven.compiler.source}</source>
  127. <encoding>${project.build.sourceEncoding}</encoding>
  128. </configuration>
  129. </plugin>
  130. <plugin>
  131. <groupId>pl.project13.maven</groupId>
  132. <artifactId>git-commit-id-plugin</artifactId>
  133. <version>2.2.5</version>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. </project>