pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.jiayue.ipfcst.monitor</groupId>
  6. <artifactId>ipfcst-monitor-parent</artifactId>
  7. <version>1.0.0.RELEASE</version>
  8. <modules>
  9. <module>ipfcst-monitor-api</module>
  10. <module>ipfcst-monitor-common</module>
  11. <module>ipfcst-monitor</module>
  12. <module>ipfcst-monitor-ui</module>
  13. </modules>
  14. <packaging>pom</packaging>
  15. <properties>
  16. <spring-boot.version>2.2.6.RELEASE</spring-boot.version>
  17. <spring-cloud.version>Hoxton.SR3</spring-cloud.version>
  18. <spring-cloud-alibaba.version>2.2.0.RELEASE</spring-cloud-alibaba.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <maven.compiler.source>1.8</maven.compiler.source>
  21. <maven.compiler.target>1.8</maven.compiler.target>
  22. <spring-boot-admin.version>2.2.2</spring-boot-admin.version>
  23. <hutool.version>5.2.5</hutool.version>
  24. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  25. <dynamic-ds.version>3.0.0</dynamic-ds.version>
  26. <kaptcha.version>0.0.9</kaptcha.version>
  27. <velocity.version>1.7</velocity.version>
  28. <jasypt.version>2.1.0</jasypt.version>
  29. <fastjson.version>1.2.69</fastjson.version>
  30. <swagger.fox.version>2.9.2</swagger.fox.version>
  31. <swagger.core.version>1.5.24</swagger.core.version>
  32. <security.oauth.version>2.3.6.RELEASE</security.oauth.version>
  33. <docker.plugin.version>0.32.0</docker.plugin.version>
  34. <docker.host>http://49.4.30.173:9011</docker.host>
  35. <docker.registry>49.4.30.173:9011</docker.registry>
  36. <docker.namespace>library</docker.namespace>
  37. <docker.username>admin</docker.username>
  38. <docker.password>ipfcst@2020</docker.password>
  39. </properties>
  40. <dependencies>
  41. <!--配置文件处理器-->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-configuration-processor</artifactId>
  45. <optional>true</optional>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.github.ulisesbocchio</groupId>
  49. <artifactId>jasypt-spring-boot-starter</artifactId>
  50. <version>${jasypt.version}</version>
  51. </dependency>
  52. <!--监控-->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-actuator</artifactId>
  56. </dependency>
  57. <!--监控客户端-->
  58. <dependency>
  59. <groupId>de.codecentric</groupId>
  60. <artifactId>spring-boot-admin-starter-client</artifactId>
  61. <version>${spring-boot-admin.version}</version>
  62. </dependency>
  63. <!--断路器依赖-->
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  67. </dependency>
  68. <!--Lombok-->
  69. <dependency>
  70. <groupId>org.projectlombok</groupId>
  71. <artifactId>lombok</artifactId>
  72. <scope>provided</scope>
  73. </dependency>
  74. <!--测试依赖-->
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-test</artifactId>
  78. <scope>test</scope>
  79. </dependency>
  80. </dependencies>
  81. <dependencyManagement>
  82. <dependencies>
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-dependencies</artifactId>
  86. <version>${spring-boot.version}</version>
  87. <type>pom</type>
  88. <scope>import</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.cloud</groupId>
  92. <artifactId>spring-cloud-dependencies</artifactId>
  93. <version>${spring-cloud.version}</version>
  94. <type>pom</type>
  95. <scope>import</scope>
  96. </dependency>
  97. <!--spring cloud alibaba-->
  98. <dependency>
  99. <groupId>com.alibaba.cloud</groupId>
  100. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  101. <version>${spring-cloud-alibaba.version}</version>
  102. <type>pom</type>
  103. <scope>import</scope>
  104. </dependency>
  105. <!--稳定版本,替代spring security bom内置-->
  106. <dependency>
  107. <groupId>org.springframework.security.oauth</groupId>
  108. <artifactId>spring-security-oauth2</artifactId>
  109. <version>${security.oauth.version}</version>
  110. </dependency>
  111. <!--swagger 最新依赖内置版本-->
  112. <dependency>
  113. <groupId>io.swagger</groupId>
  114. <artifactId>swagger-models</artifactId>
  115. <version>${swagger.core.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>io.swagger</groupId>
  119. <artifactId>swagger-annotations</artifactId>
  120. <version>${swagger.core.version}</version>
  121. </dependency>
  122. <!--fastjson 版本-->
  123. <dependency>
  124. <groupId>com.alibaba</groupId>
  125. <artifactId>fastjson</artifactId>
  126. <version>${fastjson.version}</version>
  127. </dependency>
  128. <!--web 模块-->
  129. <dependency>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-starter-web</artifactId>
  132. <version>${spring-boot.version}</version>
  133. <exclusions>
  134. <!--排除tomcat依赖-->
  135. <exclusion>
  136. <artifactId>spring-boot-starter-tomcat</artifactId>
  137. <groupId>org.springframework.boot</groupId>
  138. </exclusion>
  139. </exclusions>
  140. </dependency>
  141. </dependencies>
  142. </dependencyManagement>
  143. <build>
  144. <finalName>${project.name}</finalName>
  145. <resources>
  146. <resource>
  147. <directory>src/main/resources</directory>
  148. <filtering>true</filtering>
  149. </resource>
  150. </resources>
  151. <pluginManagement>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-maven-plugin</artifactId>
  156. <version>${spring-boot.version}</version>
  157. <configuration>
  158. <finalName>${project.build.finalName}</finalName>
  159. </configuration>
  160. <executions>
  161. <execution>
  162. <goals>
  163. <goal>repackage</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. </plugins>
  169. </pluginManagement>
  170. <plugins>
  171. <plugin>
  172. <groupId>pl.project13.maven</groupId>
  173. <artifactId>git-commit-id-plugin</artifactId>
  174. <version>2.2.5</version>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. <repositories>
  179. <!--阿里云主仓库,代理了maven central和jcenter仓库-->
  180. <repository>
  181. <id>aliyun</id>
  182. <name>aliyun</name>
  183. <url>https://maven.aliyun.com/repository/public</url>
  184. <releases>
  185. <enabled>true</enabled>
  186. </releases>
  187. <snapshots>
  188. <enabled>false</enabled>
  189. </snapshots>
  190. </repository>
  191. </repositories>
  192. <profiles>
  193. <profile>
  194. <id>dev</id>
  195. <properties>
  196. <!-- 环境标识,需要与配置文件的名称相对应 -->
  197. <profiles.active>dev</profiles.active>
  198. </properties>
  199. <activation>
  200. <!-- 默认环境 -->
  201. <activeByDefault>true</activeByDefault>
  202. </activation>
  203. </profile>
  204. </profiles>
  205. </project>