pom.xml 5.6 KB

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