pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>wuye</artifactId>
  7. <groupId>com.cyzh</groupId>
  8. <version>1.0</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>wuye-lcn</artifactId>
  13. <dependencies>
  14. <!-- LCN 分布式事务服务端 -->
  15. <dependency>
  16. <groupId>com.codingapi.txlcn</groupId>
  17. <artifactId>txlcn-tm</artifactId>
  18. </dependency>
  19. <!-- eureka-client -->
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  23. </dependency>
  24. <!-- conf client -->
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-config</artifactId>
  28. </dependency>
  29. <!-- hystrix -->
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.projectlombok</groupId>
  36. <artifactId>lombok</artifactId>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <finalName>wuye-lcn</finalName>
  41. <pluginManagement>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-maven-plugin</artifactId>
  46. <version>2.0.7.RELEASE</version>
  47. <configuration>
  48. <finalName>${project.build.finalName}</finalName>
  49. <layout>ZIP</layout>
  50. <includes>
  51. <include>
  52. <groupId>nothing</groupId>
  53. <artifactId>nothing</artifactId>
  54. </include>
  55. </includes>
  56. </configuration>
  57. <executions>
  58. <execution>
  59. <goals>
  60. <goal>repackage</goal>
  61. </goals>
  62. </execution>
  63. </executions>
  64. </plugin>
  65. </plugins>
  66. </pluginManagement>
  67. <plugins>
  68. <!-- Spring Boot 打包插件( 非“Web模块”请勿引入) -->
  69. <plugin>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-maven-plugin</artifactId>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-dependency-plugin</artifactId>
  76. <executions>
  77. <execution>
  78. <id>copy-dependencies</id>
  79. <phase>package</phase>
  80. <goals>
  81. <goal>copy-dependencies</goal>
  82. </goals>
  83. <configuration>
  84. <!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
  85. <outputDirectory>target/lib</outputDirectory>
  86. <excludeTransitive>false</excludeTransitive>
  87. <stripVersion>false</stripVersion>
  88. <includeScope>runtime</includeScope>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-resources-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <id>copy-resources</id>
  99. <phase>package</phase>
  100. <goals>
  101. <goal>copy-resources</goal>
  102. </goals>
  103. <configuration>
  104. <resources>
  105. <resource>
  106. <directory>src/main/resources</directory>
  107. </resource>
  108. </resources>
  109. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  110. </configuration>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. </plugins>
  115. </build>
  116. </project>