pom.xml 11 KB

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