pom.xml 11 KB

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