Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

157 rindas
5.1KB

  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</artifactId>
  7. <groupId>com.tuoheng</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>tuoheng-auth</artifactId>
  12. <!-- 依赖管理 -->
  13. <dependencies>
  14. <!-- 安全认证依赖 -->
  15. <dependency>
  16. <groupId>com.tuoheng</groupId>
  17. <artifactId>tuoheng-common-security</artifactId>
  18. </dependency>
  19. <!-- 系统API接口模块依赖 -->
  20. <dependency>
  21. <groupId>com.tuoheng</groupId>
  22. <artifactId>tuoheng-system-api</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.cloud</groupId>
  26. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  27. </dependency>
  28. <!-- MySql驱动 -->
  29. <dependency>
  30. <groupId>mysql</groupId>
  31. <artifactId>mysql-connector-java</artifactId>
  32. <scope>runtime</scope>
  33. </dependency>
  34. <!-- 引入阿里数据库连接池 -->
  35. <dependency>
  36. <groupId>com.alibaba</groupId>
  37. <artifactId>druid-spring-boot-starter</artifactId>
  38. <version>1.1.10</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-actuator</artifactId>
  43. </dependency>
  44. <!-- &lt;!&ndash; SpringCloud Netflix Hystrix &ndash;&gt;-->
  45. <!-- <dependency>-->
  46. <!-- <groupId>org.springframework.cloud</groupId>-->
  47. <!-- <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>-->
  48. <!-- </dependency>-->
  49. <dependency>
  50. <groupId>org.projectlombok</groupId>
  51. <artifactId>lombok</artifactId>
  52. <optional>true</optional>
  53. </dependency>
  54. </dependencies>
  55. <profiles>
  56. <!-- 本地开发环境 -->
  57. <profile>
  58. <id>local</id>
  59. <properties>
  60. <package.environment>local</package.environment>
  61. </properties>
  62. <activation>
  63. <activeByDefault>true</activeByDefault>
  64. </activation>
  65. </profile>
  66. <!-- 开发环境 -->
  67. <profile>
  68. <id>dev</id>
  69. <properties>
  70. <package.environment>dev</package.environment>
  71. </properties>
  72. </profile>
  73. <!-- 测试环境 -->
  74. <profile>
  75. <id>test</id>
  76. <properties>
  77. <package.environment>test</package.environment>
  78. </properties>
  79. </profile>
  80. <!-- 生产环境 -->
  81. <profile>
  82. <id>prod</id>
  83. <properties>
  84. <package.environment>prod</package.environment>
  85. </properties>
  86. </profile>
  87. </profiles>
  88. <build>
  89. <finalName>tuoheng-auth</finalName>
  90. <resources>
  91. <resource>
  92. <directory>src/main/resources</directory>
  93. <filtering>true</filtering>
  94. </resource>
  95. <resource>
  96. <directory>src/main/java</directory>
  97. <includes>
  98. <include>**/*.*</include>
  99. </includes>
  100. <excludes>
  101. <exclude>**/*.java</exclude>
  102. </excludes>
  103. </resource>
  104. <resource>
  105. <directory>src/main/resources</directory>
  106. <filtering>true</filtering>
  107. <targetPath>WEB-INF/classes</targetPath>
  108. <includes>
  109. <include>application-${package.environment}.yml</include>
  110. </includes>
  111. </resource>
  112. </resources>
  113. <pluginManagement>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <version>2.1.11.RELEASE</version>
  119. <configuration>
  120. <finalName>${project.build.finalName}</finalName>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>repackage</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. </plugins>
  131. </pluginManagement>
  132. <plugins>
  133. <plugin>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-maven-plugin</artifactId>
  136. <executions>
  137. <execution>
  138. <goals>
  139. <goal>repackage</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. </project>