pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. </dependency>
  25. <dependency>
  26. <groupId>org.projectlombok</groupId>
  27. <artifactId>lombok</artifactId>
  28. <optional>true</optional>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.apache.httpcomponents</groupId>
  32. <artifactId>httpclient</artifactId>
  33. <version>4.5.10</version>
  34. </dependency>
  35. <!-- swagger2-->
  36. <dependency>
  37. <groupId>io.springfox</groupId>
  38. <artifactId>springfox-swagger2</artifactId>
  39. <version>2.9.2</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>io.springfox</groupId>
  43. <artifactId>springfox-swagger-ui</artifactId>
  44. <version>2.9.2</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.alibaba</groupId>
  48. <artifactId>fastjson</artifactId>
  49. <version>1.2.47</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>cn.hutool</groupId>
  53. <artifactId>hutool-all</artifactId>
  54. <version>5.1.0</version>
  55. </dependency>
  56. <!--actuator-->
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-actuator</artifactId>
  60. </dependency>
  61. </dependencies>
  62. <dependencyManagement>
  63. <dependencies>
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-dependencies</artifactId>
  67. <version>${spring-cloud.version}</version>
  68. <type>pom</type>
  69. <scope>import</scope>
  70. </dependency>
  71. </dependencies>
  72. </dependencyManagement>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. </plugin>
  79. <!--<plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-jar-plugin</artifactId>
  82. <configuration>
  83. <archive>
  84. <manifest>
  85. <addClasspath>true</addClasspath>
  86. <classpathPrefix>lib/</classpathPrefix>
  87. </manifest>
  88. </archive>
  89. </configuration>
  90. </plugin>
  91. &lt;!&ndash; 拷贝依赖jar到lib,排除自定义的jar&ndash;&gt;
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-dependency-plugin</artifactId>
  95. <executions>
  96. <execution>
  97. <id>copy-dependencies</id>
  98. <phase>prepare-package</phase>
  99. <goals>
  100. <goal>copy-dependencies</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-resources-plugin</artifactId>
  108. &lt;!&ndash;<executions>
  109. <execution>
  110. <id>default-resources</id>
  111. <phase>validate</phase>
  112. <goals>
  113. <goal>copy-resources</goal>
  114. </goals>
  115. <configuration>
  116. <outputDirectory>target/classes</outputDirectory>
  117. <useDefaultDelimiters>false</useDefaultDelimiters>
  118. <delimiters>
  119. <delimiter>@</delimiter>
  120. </delimiters>
  121. </configuration>
  122. </execution>
  123. </executions>&ndash;&gt;
  124. </plugin>-->
  125. </plugins>
  126. </build>
  127. </project>