pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.1.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>mooctest-report-service</artifactId>
  13. <version>1.0-SNAPSHOT</version>
  14. <name>mooctest-report-service</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <spring-cloud.version>Greenwich.SR3</spring-cloud.version>
  19. <docker.image.prefix>guochaodocker</docker.image.prefix>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-tomcat</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-test</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <!-- Nacos Client -->
  36. <!-- 允许服务注册到nacos中 -->
  37. <dependency>
  38. <groupId>org.springframework.cloud</groupId>
  39. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  40. <version>0.9.0.RELEASE</version>
  41. <exclusions>
  42. <exclusion>
  43. <artifactId>guava</artifactId>
  44. <groupId>com.google.guava</groupId>
  45. </exclusion>
  46. <exclusion>
  47. <artifactId>archaius-core</artifactId>
  48. <groupId>com.netflix.archaius</groupId>
  49. </exclusion>
  50. <exclusion>
  51. <artifactId>servo-core</artifactId>
  52. <groupId>com.netflix.servo</groupId>
  53. </exclusion>
  54. </exclusions>
  55. </dependency>
  56. <!-- 允许服务向nacos拉取配置-->
  57. <!-- <dependency>-->
  58. <!-- <groupId>org.springframework.cloud</groupId>-->
  59. <!-- <artifactId>spring-cloud-alibaba-nacos-config</artifactId>-->
  60. <!-- <version>0.9.0.RELEASE</version>-->
  61. <!-- <exclusions>-->
  62. <!-- <exclusion>-->
  63. <!-- <artifactId>guava</artifactId>-->
  64. <!-- <groupId>com.google.guava</groupId>-->
  65. <!-- </exclusion>-->
  66. <!-- </exclusions>-->
  67. <!-- </dependency>-->
  68. <!-- actuator -->
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-actuator</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-test</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <version>1.16.6</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.google.code.gson</groupId>
  85. <artifactId>gson</artifactId>
  86. </dependency>
  87. <!-- ZIP -->
  88. <dependency>
  89. <groupId>net.lingala.zip4j</groupId>
  90. <artifactId>zip4j</artifactId>
  91. <version>1.3.2</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>javax.servlet</groupId>
  95. <artifactId>javax.servlet-api</artifactId>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>mysql</groupId>
  100. <artifactId>mysql-connector-java</artifactId>
  101. <scope>runtime</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-data-jpa</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.google.guava</groupId>
  109. <artifactId>guava</artifactId>
  110. <version>18.0</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.aliyun.oss</groupId>
  114. <artifactId>aliyun-sdk-oss</artifactId>
  115. <version>3.5.0</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework</groupId>
  119. <artifactId>spring-test</artifactId>
  120. <version>5.1.9.RELEASE</version>
  121. <scope>compile</scope>
  122. </dependency>
  123. </dependencies>
  124. <dependencyManagement>
  125. <dependencies>
  126. <dependency>
  127. <groupId>org.springframework.cloud</groupId>
  128. <artifactId>spring-cloud-dependencies</artifactId>
  129. <version>${spring-cloud.version}</version>
  130. <type>pom</type>
  131. <scope>import</scope>
  132. </dependency>
  133. <!--整合Spring Cloud Alibaba-->
  134. <dependency>
  135. <groupId>com.alibaba.cloud</groupId>
  136. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  137. <version>2.1.0.RELEASE</version>
  138. <type>pom</type>
  139. <scope>import</scope>
  140. </dependency>
  141. </dependencies>
  142. </dependencyManagement>
  143. <build>
  144. <plugins>
  145. <plugin>
  146. <groupId>org.springframework.boot</groupId>
  147. <artifactId>spring-boot-maven-plugin</artifactId>
  148. </plugin>
  149. <!-- Docker maven plugin -->
  150. <plugin>
  151. <groupId>com.spotify</groupId>
  152. <artifactId>docker-maven-plugin</artifactId>
  153. <version>1.0.0</version>
  154. <configuration>
  155. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  156. <dockerDirectory>src/main/docker</dockerDirectory>
  157. <resources>
  158. <resource>
  159. <targetPath>/</targetPath>
  160. <directory>${project.build.directory}</directory>
  161. <include>${project.build.finalName}.jar</include>
  162. </resource>
  163. </resources>
  164. </configuration>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </project>