pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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>ruixuan</artifactId>
  7. <groupId>com.ruixuan</groupId>
  8. <version>3.8.2</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>ruixuan-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <!-- swagger3-->
  24. <dependency>
  25. <groupId>io.springfox</groupId>
  26. <artifactId>springfox-boot-starter</artifactId>
  27. </dependency>
  28. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  29. <dependency>
  30. <groupId>io.swagger</groupId>
  31. <artifactId>swagger-models</artifactId>
  32. <version>1.6.2</version>
  33. </dependency>
  34. <!-- Mysql驱动包 -->
  35. <dependency>
  36. <groupId>mysql</groupId>
  37. <artifactId>mysql-connector-java</artifactId>
  38. </dependency>
  39. <!-- 核心模块-->
  40. <dependency>
  41. <groupId>com.ruixuan</groupId>
  42. <artifactId>ruixuan-framework</artifactId>
  43. </dependency>
  44. <!-- 定时任务-->
  45. <dependency>
  46. <groupId>com.ruixuan</groupId>
  47. <artifactId>ruixuan-quartz</artifactId>
  48. </dependency>
  49. <!-- 代码生成-->
  50. <dependency>
  51. <groupId>com.ruixuan</groupId>
  52. <artifactId>ruixuan-generator</artifactId>
  53. </dependency>
  54. <!-- 销售线索模块-->
  55. <dependency>
  56. <groupId>com.ruixuan</groupId>
  57. <artifactId>ruixuan-salesLeads</artifactId>
  58. </dependency>
  59. <!-- 直播业务模块-->
  60. <dependency>
  61. <groupId>com.ruixuan</groupId>
  62. <artifactId>ruixuan-live</artifactId>
  63. </dependency>
  64. <!-- 直播业务模块-->
  65. <dependency>
  66. <groupId>com.ruixuan</groupId>
  67. <artifactId>ruixuan-launch</artifactId>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <resources>
  72. <resource>
  73. <directory>../../lib</directory>
  74. <targetPath>BOOT-INF/lib/</targetPath>
  75. <includes>
  76. <include>**/*.jar</include>
  77. </includes>
  78. </resource>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. <!--先排除所有的配置文件-->
  82. <excludes>
  83. <exclude>application*.yml</exclude>
  84. </excludes>
  85. </resource>
  86. <resource>
  87. <directory>src/main/resources</directory>
  88. <!--引入所需环境的配置文件-->
  89. <filtering>true</filtering>
  90. <includes>
  91. <include>application.yml</include>
  92. <include>application-${activatedProperties}.yml</include>
  93. </includes>
  94. </resource>
  95. </resources>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-maven-plugin</artifactId>
  100. <version>2.1.1.RELEASE</version>
  101. <configuration>
  102. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  103. </configuration>
  104. <executions>
  105. <execution>
  106. <goals>
  107. <goal>repackage</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-war-plugin</artifactId>
  115. <version>3.1.0</version>
  116. <configuration>
  117. <failOnMissingWebXml>false</failOnMissingWebXml>
  118. <warName>${project.artifactId}</warName>
  119. </configuration>
  120. </plugin>
  121. </plugins>
  122. <finalName>${project.artifactId}</finalName>
  123. </build>
  124. <profiles>
  125. <profile>
  126. <id>dev</id>
  127. <properties>
  128. <!-- 环境标识,需要与配置文件的名称相对应 -->
  129. <activatedProperties>dev</activatedProperties>
  130. </properties>
  131. <activation>
  132. <!-- 默认环境 -->
  133. <activeByDefault>true</activeByDefault>
  134. </activation>
  135. </profile>
  136. <profile>
  137. <id>prod</id>
  138. <properties>
  139. <activatedProperties>prod</activatedProperties>
  140. </properties>
  141. </profile>
  142. <profile>
  143. <id>mgs</id>
  144. <properties>
  145. <activatedProperties>mgs</activatedProperties>
  146. </properties>
  147. </profile>
  148. <profile>
  149. <id>rocket</id>
  150. <properties>
  151. <activatedProperties>rocket</activatedProperties>
  152. </properties>
  153. </profile>
  154. <profile>
  155. <id>yufu</id>
  156. <properties>
  157. <activatedProperties>yufu</activatedProperties>
  158. </properties>
  159. </profile>
  160. <profile>
  161. <id>yuxiu</id>
  162. <properties>
  163. <activatedProperties>yuxiu</activatedProperties>
  164. </properties>
  165. </profile>
  166. <profile>
  167. <id>zhishui</id>
  168. <properties>
  169. <activatedProperties>zhishui</activatedProperties>
  170. </properties>
  171. </profile>
  172. </profiles>
  173. </project>