pom.xml 5.2 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. </parent>
  10. <groupId>info.aspirecn.cloud.yysj</groupId>
  11. <artifactId>cloud-yysj-cost-query</artifactId>
  12. <version>1.0.0</version>
  13. <name>cloud-yysj-cost-query</name>
  14. <description>cloud yysj platform analysis information</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-starter-kubernetes-config</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.cloud</groupId>
  26. <artifactId>spring-cloud-starter-openfeign</artifactId>
  27. </dependency>
  28. <!--actuator-->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-actuator</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-web</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.projectlombok</groupId>
  39. <artifactId>lombok</artifactId>
  40. <optional>true</optional>
  41. </dependency>
  42. <dependency>
  43. <groupId>io.springfox</groupId>
  44. <artifactId>springfox-swagger2</artifactId>
  45. <version>2.9.2</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>io.springfox</groupId>
  49. <artifactId>springfox-swagger-ui</artifactId>
  50. <version>2.9.2</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.github.xiaoymin</groupId>
  54. <artifactId>swagger-bootstrap-ui</artifactId>
  55. <version>1.9.6</version>
  56. </dependency>
  57. <!-- 配置jdbc依赖 -->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  61. </dependency>
  62. <!-- mysql依赖 -->
  63. <dependency>
  64. <groupId>mysql</groupId>
  65. <artifactId>mysql-connector-java</artifactId>
  66. </dependency>
  67. <!-- mybatis依赖 -->
  68. <dependency>
  69. <groupId>org.mybatis.spring.boot</groupId>
  70. <artifactId>mybatis-spring-boot-starter</artifactId>
  71. <version>1.3.2</version>
  72. </dependency>
  73. </dependencies>
  74. <dependencyManagement>
  75. <dependencies>
  76. <dependency>
  77. <groupId>org.springframework.cloud</groupId>
  78. <artifactId>spring-cloud-dependencies</artifactId>
  79. <version>${spring-cloud.version}</version>
  80. <type>pom</type>
  81. <scope>import</scope>
  82. </dependency>
  83. </dependencies>
  84. </dependencyManagement>
  85. <build>
  86. <plugins>
  87. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-jar-plugin</artifactId>
  91. <configuration>
  92. <archive>
  93. <manifest>
  94. <addClasspath>true</addClasspath>
  95. <classpathPrefix>lib/</classpathPrefix>
  96. </manifest>
  97. </archive>
  98. </configuration>
  99. </plugin>
  100. <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <configuration>
  105. <includes>
  106. <include>
  107. <groupId>nothing</groupId>
  108. <artifactId>nothing</artifactId>
  109. </include>
  110. </includes>
  111. </configuration>
  112. </plugin>
  113. <!--设置将 lib 拷贝到应用 Jar 外面-->
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-dependency-plugin</artifactId>
  117. <executions>
  118. <execution>
  119. <id>copy-dependencies</id>
  120. <phase>prepare-package</phase>
  121. <goals>
  122. <goal>copy-dependencies</goal>
  123. </goals>
  124. <configuration>
  125. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  126. </configuration>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>