pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.sankuai.inf.leaf</groupId>
  7. <artifactId>leaf-parent</artifactId>
  8. <version>1.0.1</version>
  9. </parent>
  10. <groupId>com.sankuai.inf.leaf</groupId>
  11. <artifactId>leaf-server</artifactId>
  12. <version>1.0.1</version>
  13. <packaging>jar</packaging>
  14. <name>leaf-server</name>
  15. <description>Leaf HTTP Server</description>
  16. <properties>
  17. <spring-boot-dependencies.version>1.5.18.RELEASE</spring-boot-dependencies.version>
  18. </properties>
  19. <dependencyManagement>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-dependencies</artifactId>
  24. <version>${spring-boot-dependencies.version}</version>
  25. <type>pom</type>
  26. <scope>import</scope>
  27. </dependency>
  28. </dependencies>
  29. </dependencyManagement>
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. </dependency>
  35. <!-- Spring Boot Freemarker 依赖 -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-freemarker</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-test</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.sankuai.inf.leaf</groupId>
  47. <artifactId>leaf-core</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.alibaba</groupId>
  51. <artifactId>druid</artifactId>
  52. </dependency>
  53. <!--zk-->
  54. <dependency>
  55. <groupId>org.apache.curator</groupId>
  56. <artifactId>curator-recipes</artifactId>
  57. <exclusions>
  58. <exclusion>
  59. <artifactId>log4j</artifactId>
  60. <groupId>log4j</groupId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>junit</groupId>
  66. <artifactId>junit</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <version>${spring-boot-dependencies.version}</version>
  76. <configuration>
  77. <mainClass>com.sankuai.inf.leaf.server.LeafServerApplication</mainClass>
  78. </configuration>
  79. <executions>
  80. <execution>
  81. <goals>
  82. <goal>repackage</goal>
  83. </goals>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. <plugin>
  88. <artifactId>maven-dependency-plugin</artifactId>
  89. <executions>
  90. <execution>
  91. <id>copy-dependencies</id>
  92. <phase>compile</phase>
  93. <goals>
  94. <goal>copy-dependencies</goal>
  95. </goals>
  96. <configuration>
  97. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  98. <excludeTransitive>false</excludeTransitive>
  99. <!-- 表示复制的jar文件去掉版本信息 -->
  100. <stripVersion>false</stripVersion>
  101. </configuration>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. </project>