pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.crm.gateway</groupId>
  5. <artifactId>com-crm-gateway</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>jar</packaging>
  8. <name>fangjia-gateway</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <spring-cloud.version>Dalston.SR5</spring-cloud.version>
  13. </properties>
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>1.5.8.RELEASE</version>
  18. <relativePath/> <!-- lookup parent fromAccount repository -->
  19. </parent>
  20. <dependencies>
  21. <!-- spring cloud Eureka Client 启动器 -->
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-starter-eureka</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-starter-zuul</artifactId>
  29. </dependency>
  30. <!-- zuul网关的重试机制,不是使用ribbon内置的重试机制
  31. 是借助spring-retry组件实现的重试
  32. 开启zuul网关重试机制需要增加下述依赖
  33. -->
  34. <dependency>
  35. <groupId>org.springframework.retry</groupId>
  36. <artifactId>spring-retry</artifactId>
  37. </dependency>
  38. <!--redis-->
  39. <dependency>
  40. <groupId>redis.clients</groupId>
  41. <artifactId>jedis</artifactId>
  42. <version>2.9.0</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.data</groupId>
  46. <artifactId>spring-data-redis</artifactId>
  47. <version>1.8.3.RELEASE</version>
  48. </dependency>
  49. <!--feign-->
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-feign</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.crm.core</groupId>
  56. <artifactId>crm-core</artifactId>
  57. <version>1.1.0</version>
  58. </dependency>
  59. </dependencies>
  60. <dependencyManagement>
  61. <dependencies>
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-dependencies</artifactId>
  65. <version>${spring-cloud.version}</version>
  66. <type>pom</type>
  67. <scope>import</scope>
  68. </dependency>
  69. </dependencies>
  70. </dependencyManagement>
  71. <build>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-maven-plugin</artifactId>
  76. <configuration>
  77. <outputDirectory>
  78. ${project.build.directory}/../../lib
  79. </outputDirectory>
  80. <layout>ZIP</layout>
  81. <includes>
  82. <include>
  83. <groupId>com.crm.gateway</groupId>
  84. <artifactId>com-crm-gateway</artifactId>
  85. </include>
  86. </includes>
  87. </configuration>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.mybatis.generator</groupId>
  91. <artifactId>mybatis-generator-maven-plugin</artifactId>
  92. <version>1.3.5</version>
  93. </plugin>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-compiler-plugin</artifactId>
  97. <configuration>
  98. <source>7</source>
  99. <target>7</target>
  100. </configuration>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. <repositories>
  105. <repository>
  106. <id>spring-snapshots</id>
  107. <name>Spring Snapshots</name>
  108. <url>https://repo.spring.io/snapshot</url>
  109. <snapshots>
  110. <enabled>true</enabled>
  111. </snapshots>
  112. </repository>
  113. <repository>
  114. <id>spring-milestones</id>
  115. <name>Spring Milestones</name>
  116. <url>https://repo.spring.io/milestone</url>
  117. <snapshots>
  118. <enabled>false</enabled>
  119. </snapshots>
  120. </repository>
  121. </repositories>
  122. <pluginRepositories>
  123. <pluginRepository>
  124. <id>spring-snapshots</id>
  125. <name>Spring Snapshots</name>
  126. <url>https://repo.spring.io/snapshot</url>
  127. <snapshots>
  128. <enabled>true</enabled>
  129. </snapshots>
  130. </pluginRepository>
  131. <pluginRepository>
  132. <id>spring-milestones</id>
  133. <name>Spring Milestones</name>
  134. <url>https://repo.spring.io/milestone</url>
  135. <snapshots>
  136. <enabled>false</enabled>
  137. </snapshots>
  138. </pluginRepository>
  139. </pluginRepositories>
  140. </project>