pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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.2.2.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>info.aspirecn.cloud.yysj</groupId>
  12. <artifactId>cloud-yysj-agency</artifactId>
  13. <version>1.0.1</version>
  14. <name>cloud-yysj-agency</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.apache.logging.log4j</groupId>
  27. <artifactId>log4j-to-slf4j</artifactId>
  28. </exclusion>
  29. <exclusion>
  30. <groupId>org.apache.logging.log4j</groupId>
  31. <artifactId>log4j-api</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.logging.log4j</groupId>
  37. <artifactId>log4j-api</artifactId>
  38. <version>2.15.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.logging.log4j</groupId>
  42. <artifactId>log4j-to-slf4j</artifactId>
  43. <version>2.15.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <optional>true</optional>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.httpcomponents</groupId>
  52. <artifactId>httpclient</artifactId>
  53. <version>4.5.10</version>
  54. </dependency>
  55. <!-- swagger2-->
  56. <dependency>
  57. <groupId>io.springfox</groupId>
  58. <artifactId>springfox-swagger2</artifactId>
  59. <version>2.9.2</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>io.springfox</groupId>
  63. <artifactId>springfox-swagger-ui</artifactId>
  64. <version>2.9.2</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>fastjson</artifactId>
  69. <version>1.2.76</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>cn.hutool</groupId>
  73. <artifactId>hutool-all</artifactId>
  74. <version>5.1.0</version>
  75. </dependency>
  76. <!--actuator-->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-actuator</artifactId>
  80. </dependency>
  81. </dependencies>
  82. <dependencyManagement>
  83. <dependencies>
  84. <dependency>
  85. <groupId>org.springframework.cloud</groupId>
  86. <artifactId>spring-cloud-dependencies</artifactId>
  87. <version>${spring-cloud.version}</version>
  88. <type>pom</type>
  89. <scope>import</scope>
  90. </dependency>
  91. </dependencies>
  92. </dependencyManagement>
  93. <build>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-maven-plugin</artifactId>
  98. </plugin>
  99. <!--<plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-jar-plugin</artifactId>
  102. <configuration>
  103. <archive>
  104. <manifest>
  105. <addClasspath>true</addClasspath>
  106. <classpathPrefix>lib/</classpathPrefix>
  107. </manifest>
  108. </archive>
  109. </configuration>
  110. </plugin>
  111. &lt;!&ndash; 拷贝依赖jar到lib,排除自定义的jar&ndash;&gt;
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-dependency-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <id>copy-dependencies</id>
  118. <phase>prepare-package</phase>
  119. <goals>
  120. <goal>copy-dependencies</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-resources-plugin</artifactId>
  128. &lt;!&ndash;<executions>
  129. <execution>
  130. <id>default-resources</id>
  131. <phase>validate</phase>
  132. <goals>
  133. <goal>copy-resources</goal>
  134. </goals>
  135. <configuration>
  136. <outputDirectory>target/classes</outputDirectory>
  137. <useDefaultDelimiters>false</useDefaultDelimiters>
  138. <delimiters>
  139. <delimiter>@</delimiter>
  140. </delimiters>
  141. </configuration>
  142. </execution>
  143. </executions>&ndash;&gt;
  144. </plugin>-->
  145. </plugins>
  146. </build>
  147. </project>