pom.xml 5.9 KB

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