拓恒高速公路巡检管理平台 服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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