pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. <parent>
  6. <artifactId>wuye-device</artifactId>
  7. <groupId>com.cyzh</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>wuye-device-biz</artifactId>
  12. <description>设备模块业务实现</description>
  13. <dependencies>
  14. <!-- ===================================== Or JAR ===================================== -->
  15. <!-- MySql -->
  16. <dependency>
  17. <groupId>mysql</groupId>
  18. <artifactId>mysql-connector-java</artifactId>
  19. </dependency>
  20. <!-- druid 数据源 -->
  21. <dependency>
  22. <groupId>com.alibaba</groupId>
  23. <artifactId>druid</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.projectlombok</groupId>
  27. <artifactId>lombok</artifactId>
  28. </dependency>
  29. <!-- ===================================== Modular JAR ===================================== -->
  30. <!-- 设备服务接口 -->
  31. <dependency>
  32. <groupId>com.cyzh</groupId>
  33. <artifactId>wuye-device-api</artifactId>
  34. <version>${project.version}</version>
  35. </dependency>
  36. <!-- 权限模块接口 -->
  37. <dependency>
  38. <groupId>com.cyzh</groupId>
  39. <artifactId>wuye-permissions-api</artifactId>
  40. <version>${project.version}</version>
  41. </dependency>
  42. <!-- 统计模块接口 -->
  43. <dependency>
  44. <groupId>com.cyzh</groupId>
  45. <artifactId>wuye-statistics-api</artifactId>
  46. <version>${project.version}</version>
  47. </dependency>
  48. <!-- 物业模块接口 -->
  49. <dependency>
  50. <groupId>com.cyzh</groupId>
  51. <artifactId>wuye-estate-api</artifactId>
  52. <version>${project.version}</version>
  53. </dependency>
  54. <!-- 广告模块接口 -->
  55. <dependency>
  56. <groupId>com.cyzh</groupId>
  57. <artifactId>wuye-ad-api</artifactId>
  58. <version>${project.version}</version>
  59. </dependency>
  60. <!-- 第三方模块接口 -->
  61. <dependency>
  62. <groupId>com.cyzh</groupId>
  63. <artifactId>wuye-third-api</artifactId>
  64. <version>${project.version}</version>
  65. </dependency>
  66. <!-- ===================================== Spring Boot JAR ===================================== -->
  67. <!-- 测试用例 -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-test</artifactId>
  71. </dependency>
  72. <!-- mybatis-plus -->
  73. <dependency>
  74. <groupId>com.baomidou</groupId>
  75. <artifactId>mybatis-plus-boot-starter</artifactId>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <finalName>wuye-device</finalName>
  80. <pluginManagement>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-maven-plugin</artifactId>
  85. <version>2.0.7.RELEASE</version>
  86. <configuration>
  87. <finalName>${project.build.finalName}</finalName>
  88. <layout>ZIP</layout>
  89. <includes>
  90. <include>
  91. <groupId>nothing</groupId>
  92. <artifactId>nothing</artifactId>
  93. </include>
  94. </includes>
  95. </configuration>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>repackage</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. </plugins>
  105. </pluginManagement>
  106. <plugins>
  107. <!-- Spring Boot 打包插件( 非“Web模块”请勿引入) -->
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-dependency-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <id>copy-dependencies</id>
  118. <phase>package</phase>
  119. <goals>
  120. <goal>copy-dependencies</goal>
  121. </goals>
  122. <configuration>
  123. <!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
  124. <outputDirectory>target/lib</outputDirectory>
  125. <excludeTransitive>false</excludeTransitive>
  126. <stripVersion>false</stripVersion>
  127. <includeScope>runtime</includeScope>
  128. </configuration>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-resources-plugin</artifactId>
  135. <executions>
  136. <execution>
  137. <id>copy-resources</id>
  138. <phase>package</phase>
  139. <goals>
  140. <goal>copy-resources</goal>
  141. </goals>
  142. <configuration>
  143. <resources>
  144. <resource>
  145. <directory>src/main/resources</directory>
  146. </resource>
  147. </resources>
  148. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </project>