pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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.sptg</groupId>
  7. <artifactId>smart-house</artifactId>
  8. <packaging>pom</packaging>
  9. <version>1.0</version>
  10. <modules>
  11. <module>sptg-eureka</module>
  12. <module>sptg-api-gateway</module>
  13. <module>sptg-config</module>
  14. <module>sptg-common</module>
  15. <module>sptg-gateway</module>
  16. <module>sptg-pay</module>
  17. <module>sptg-permissions</module>
  18. <module>sptg-device</module>
  19. <module>sptg-estate</module>
  20. <module>sptg-ad</module>
  21. <module>sptg-statistics</module>
  22. <module>sptg-tx-manager</module>
  23. <module>sptg-iot</module>
  24. <module>sptg-video-cloud</module>
  25. <module>sptg-third</module>
  26. <module>sptg-repeater</module>
  27. </modules>
  28. <properties>
  29. <!-- 编码 -->
  30. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  31. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  32. <!-- Maven 编译版本 -->
  33. <maven.compiler.source>1.8</maven.compiler.source>
  34. <maven.compiler.target>1.8</maven.compiler.target>
  35. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  36. <!-- Mysql -->
  37. <mysql.version>8.0.11</mysql.version>
  38. <!-- Spring Boot -->
  39. <spring-boot-dependencies.version>2.0.7.RELEASE</spring-boot-dependencies.version>
  40. <!-- Spring Cloud -->
  41. <spring-cloud-dependencies.version>Finchley.SR2</spring-cloud-dependencies.version>
  42. <!-- lombok -->
  43. <lombok.version>1.18.2</lombok.version>
  44. <!-- mybatis-plus -->
  45. <mbp.boot.version>2.3</mbp.boot.version>
  46. <!-- druid 数据源 -->
  47. <druid.version>1.1.9</druid.version>
  48. <!-- Apache工具组件 -->
  49. <commons-io.version>2.6</commons-io.version>
  50. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  51. <commons-codec.version>1.11</commons-codec.version>
  52. <poi.version>3.17</poi.version>
  53. <poi-ooxml.version>3.17</poi-ooxml.version>
  54. <easyexcel.version>1.1.2-beta5</easyexcel.version>
  55. <!-- FastDfs 客户端 -->
  56. <fastdfs-client.version>1.26.3</fastdfs-client.version>
  57. <!-- Lcn 分布式事务框架 -->
  58. <lcn-tx.version>5.0.2.RELEASE</lcn-tx.version>
  59. </properties>
  60. <distributionManagement>
  61. <repository>
  62. <id>nexus-releases</id>
  63. <name>ReleasesProxy</name>
  64. <url>http://800pharm.7766.org:9081/repository/maven-releases/</url>
  65. </repository>
  66. <snapshotRepository>
  67. <id>nexus-snapshots</id>
  68. <url>http://800pharm.7766.org:9081/repository/maven-snapshots/</url>
  69. </snapshotRepository>
  70. </distributionManagement>
  71. <!-- 依赖管理 -->
  72. <dependencyManagement>
  73. <dependencies>
  74. <!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib -->
  75. <dependency>
  76. <groupId>net.sf.json-lib</groupId>
  77. <artifactId>json-lib</artifactId>
  78. <version>2.4</version>
  79. </dependency>
  80. <!-- LCN 分布式事务服务端 -->
  81. <dependency>
  82. <groupId>com.codingapi.txlcn</groupId>
  83. <artifactId>txlcn-tm</artifactId>
  84. <version>${lcn-tx.version}</version>
  85. </dependency>
  86. <!-- LCN 分布式事务客户端 -->
  87. <dependency>
  88. <groupId>com.codingapi.txlcn</groupId>
  89. <artifactId>txlcn-tc</artifactId>
  90. <version>${lcn-tx.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.codingapi.txlcn</groupId>
  94. <artifactId>txlcn-txmsg-netty</artifactId>
  95. <version>${lcn-tx.version}</version>
  96. </dependency>
  97. <!-- FastDfs 客户端 -->
  98. <dependency>
  99. <groupId>com.github.tobato</groupId>
  100. <artifactId>fastdfs-client</artifactId>
  101. <version>${fastdfs-client.version}</version>
  102. </dependency>
  103. <!-- Mysql -->
  104. <dependency>
  105. <groupId>mysql</groupId>
  106. <artifactId>mysql-connector-java</artifactId>
  107. <version>${mysql.version}</version>
  108. </dependency>
  109. <!-- Spring Boot -->
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-dependencies</artifactId>
  113. <version>${spring-boot-dependencies.version}</version>
  114. <type>pom</type>
  115. <scope>import</scope>
  116. </dependency>
  117. <!-- Spring Cloud -->
  118. <dependency>
  119. <groupId>org.springframework.cloud</groupId>
  120. <artifactId>spring-cloud-dependencies</artifactId>
  121. <version>${spring-cloud-dependencies.version}</version>
  122. <type>pom</type>
  123. <scope>import</scope>
  124. </dependency>
  125. <!-- Lombok -->
  126. <dependency>
  127. <groupId>org.projectlombok</groupId>
  128. <artifactId>lombok</artifactId>
  129. <version>${lombok.version}</version>
  130. <scope>provided</scope>
  131. </dependency>
  132. <!-- mybatis-plus -->
  133. <dependency>
  134. <groupId>com.baomidou</groupId>
  135. <artifactId>mybatis-plus-core</artifactId>
  136. <version>${mbp.boot.version}</version>
  137. <scope>compile</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.baomidou</groupId>
  141. <artifactId>mybatis-plus-boot-starter</artifactId>
  142. <version>${mbp.boot.version}</version>
  143. </dependency>
  144. <!-- 连接池druid 数据源 -->
  145. <dependency>
  146. <groupId>com.alibaba</groupId>
  147. <artifactId>druid</artifactId>
  148. <version>${druid.version}</version>
  149. </dependency>
  150. <!-- Apache工具组件 -->
  151. <dependency>
  152. <groupId>commons-codec</groupId>
  153. <artifactId>commons-codec</artifactId>
  154. <version>${commons-codec.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>commons-io</groupId>
  158. <artifactId>commons-io</artifactId>
  159. <version>${commons-io.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>commons-fileupload</groupId>
  163. <artifactId>commons-fileupload</artifactId>
  164. <version>${commons-fileupload.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.poi</groupId>
  168. <artifactId>poi</artifactId>
  169. <version>${poi.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.poi</groupId>
  173. <artifactId>poi-ooxml</artifactId>
  174. <version>${poi.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.alibaba</groupId>
  178. <artifactId>easyexcel</artifactId>
  179. <version>${easyexcel.version}</version>
  180. </dependency>
  181. </dependencies>
  182. </dependencyManagement>
  183. <dependencies>
  184. <!-- 模板引擎 -->
  185. <dependency>
  186. <groupId>org.apache.velocity</groupId>
  187. <artifactId>velocity-engine-core</artifactId>
  188. <version>2.0</version>
  189. </dependency>
  190. </dependencies>
  191. <repositories>
  192. <!-- 使用阿里云镜像 -->
  193. <repository>
  194. <id>aliyun</id>
  195. <name>aliyun</name>
  196. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  197. </repository>
  198. <repository>
  199. <id>spring-milestones</id>
  200. <name>Spring Milestones</name>
  201. <url>https://repo.spring.io/milestone</url>
  202. <snapshots>
  203. <enabled>false</enabled>
  204. </snapshots>
  205. </repository>
  206. </repositories>
  207. <profiles>
  208. <!-- 开发环境,默认激活 -->
  209. <profile>
  210. <id>dev</id>
  211. <properties>
  212. <env>dev</env>
  213. <config-url>http://smart-house-config:4001</config-url>
  214. </properties>
  215. <activation>
  216. <activeByDefault>true</activeByDefault>
  217. </activation>
  218. </profile>
  219. <profile>
  220. <id>test</id>
  221. <properties>
  222. <env>test</env>
  223. <config-url>http://smart-house-config:4001</config-url>
  224. </properties>
  225. </profile>
  226. <profile>
  227. <id>prod</id>
  228. <properties>
  229. <env>prod</env>
  230. <config-url>http://smart-house-config:4001</config-url>
  231. </properties>
  232. </profile>
  233. </profiles>
  234. <build>
  235. <finalName>${project.artifactId}</finalName>
  236. <resources>
  237. <resource>
  238. <directory>src/main/resources</directory>
  239. </resource>
  240. <resource>
  241. <directory>src/main/resources</directory>
  242. <filtering>true</filtering>
  243. <includes>
  244. <include>conf/*.yml</include>
  245. <include>*.yml</include>
  246. <include>*.properties</include>
  247. </includes>
  248. </resource>
  249. </resources>
  250. <pluginManagement>
  251. <plugins>
  252. <!-- Spring Boot 打包插件( 非“Web模块”请勿引入) -->
  253. <plugin>
  254. <groupId>org.springframework.boot</groupId>
  255. <artifactId>spring-boot-maven-plugin</artifactId>
  256. <version>${spring-boot-dependencies.version}</version>
  257. <configuration>
  258. <!-- 没有该配置,devtools 不生效 -->
  259. <fork>true</fork>
  260. <addResources>true</addResources>
  261. </configuration>
  262. <executions>
  263. <execution>
  264. <goals>
  265. <goal>repackage</goal>
  266. </goals>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. </plugins>
  271. </pluginManagement>
  272. <!-- 公共插件 -->
  273. <plugins>
  274. <!-- Maven 打包时跳过测试用例 -->
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-surefire-plugin</artifactId>
  278. <version>3.0.0-M3</version>
  279. <configuration>
  280. <!-- <skip>true</skip> -->
  281. <skipTests>true</skipTests>
  282. <systemProperties>
  283. <property>
  284. <name>env</name>
  285. <value>${env}</value>
  286. </property>
  287. </systemProperties>
  288. </configuration>
  289. </plugin>
  290. </plugins>
  291. </build>
  292. </project>