拓恒高速公路巡检管理平台 服务端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

205 行
6.8KB

  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>tuoheng-service</artifactId>
  7. <groupId>com.tuoheng</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>tuoheng-miniprogram</artifactId>
  12. <properties>
  13. <maven.compiler.source>11</maven.compiler.source>
  14. <maven.compiler.target>11</maven.compiler.target>
  15. <tuoheng.version>1.0.0</tuoheng.version>
  16. </properties>
  17. <!-- 依赖声明管理 -->
  18. <dependencies>
  19. <!-- 核心依赖模块 -->
  20. <dependency>
  21. <groupId>com.tuoheng</groupId>
  22. <artifactId>tuoheng-common-core</artifactId>
  23. </dependency>
  24. <!-- Consul注册中心起始依赖 -->
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-consul-discovery</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. </dependency>
  33. <!-- MySql驱动 -->
  34. <dependency>
  35. <groupId>mysql</groupId>
  36. <artifactId>mysql-connector-java</artifactId>
  37. <scope>runtime</scope>
  38. </dependency>
  39. <!--redis-->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-data-redis</artifactId>
  43. </dependency>
  44. <!-- 引入阿里数据库连接池 -->
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>druid-spring-boot-starter</artifactId>
  48. <version>1.1.10</version>
  49. </dependency>
  50. <!--mybatis-plus 代码自动生成 -->
  51. <dependency>
  52. <groupId>com.baomidou</groupId>
  53. <artifactId>mybatis-plus-generator</artifactId>
  54. <version>3.2.0</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.projectlombok</groupId>
  58. <artifactId>lombok</artifactId>
  59. <optional>true</optional>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.aliyun</groupId>
  63. <artifactId>vod20170321</artifactId>
  64. <version>2.16.8</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.aliyun</groupId>
  68. <artifactId>aliyun-java-sdk-core</artifactId>
  69. <version>4.5.1</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.aliyun.oss</groupId>
  73. <artifactId>aliyun-sdk-oss</artifactId>
  74. <version>3.10.2</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.aliyun</groupId>
  78. <artifactId>aliyun-java-sdk-vod</artifactId>
  79. <version>2.15.11</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.cloud</groupId>
  83. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  84. <version>2.2.1.RELEASE</version>
  85. </dependency>
  86. <!-- freeway api fegin 接口模块依赖 -->
  87. <dependency>
  88. <groupId>com.tuoheng</groupId>
  89. <artifactId>tuoheng-api-feign</artifactId>
  90. <version>${tuoheng.version}</version>
  91. </dependency>
  92. </dependencies>
  93. <!-- 环境变量配置 -->
  94. <profiles>
  95. <!-- 本地开发环境 -->
  96. <profile>
  97. <id>local</id>
  98. <properties>
  99. <package.environment>local</package.environment>
  100. </properties>
  101. <activation>
  102. <activeByDefault>true</activeByDefault>
  103. </activation>
  104. </profile>
  105. <!-- 开发环境 -->
  106. <profile>
  107. <id>dev</id>
  108. <properties>
  109. <package.environment>dev</package.environment>
  110. </properties>
  111. </profile>
  112. <!-- 测试环境 -->
  113. <profile>
  114. <id>test</id>
  115. <properties>
  116. <package.environment>test</package.environment>
  117. </properties>
  118. </profile>
  119. <!-- 生产环境 -->
  120. <profile>
  121. <id>prod</id>
  122. <properties>
  123. <package.environment>prod</package.environment>
  124. </properties>
  125. </profile>
  126. </profiles>
  127. <!-- 环境变量构建 -->
  128. <build>
  129. <finalName>tuoheng_freeway_miniprogram</finalName>
  130. <resources>
  131. <resource>
  132. <directory>src/main/resources</directory>
  133. <filtering>true</filtering>
  134. <includes>
  135. <include>**/*.xml</include>
  136. <include>**/*.properties</include>
  137. <include>**/*.yml</include>
  138. </includes>
  139. </resource>
  140. <resource>
  141. <directory>src/main/java</directory>
  142. <includes>
  143. <include>**/*.*</include>
  144. </includes>
  145. <excludes>
  146. <exclude>**/*.java</exclude>
  147. </excludes>
  148. </resource>
  149. <resource>
  150. <directory>src/main/resources</directory>
  151. <filtering>true</filtering>
  152. <targetPath>WEB-INF/classes</targetPath>
  153. <includes>
  154. <include>application-${package.environment}.yml</include>
  155. </includes>
  156. </resource>
  157. </resources>
  158. <pluginManagement>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-maven-plugin</artifactId>
  163. <version>2.1.11.RELEASE</version>
  164. <configuration>
  165. <finalName>${project.build.finalName}</finalName>
  166. </configuration>
  167. <executions>
  168. <execution>
  169. <goals>
  170. <goal>repackage</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </pluginManagement>
  177. <plugins>
  178. <plugin>
  179. <groupId>org.springframework.boot</groupId>
  180. <artifactId>spring-boot-maven-plugin</artifactId>
  181. <executions>
  182. <execution>
  183. <goals>
  184. <goal>repackage</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. </plugins>
  190. </build>
  191. </project>