pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. <name>elasticsearch-jetty</name>
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.smzdm</groupId>
  8. <artifactId>elasticsearch-jetty-cat</artifactId>
  9. <version>1.0.0-SNAPSHOT</version>
  10. <packaging>jar</packaging>
  11. <properties>
  12. <elasticsearch.version>1.5.2</elasticsearch.version>
  13. <jetty.version>8.1.14.v20131031</jetty.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.elasticsearch</groupId>
  18. <artifactId>elasticsearch</artifactId>
  19. <version>${elasticsearch.version}</version>
  20. <scope>compile</scope>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.eclipse.jetty</groupId>
  24. <artifactId>jetty-server</artifactId>
  25. <version>${jetty.version}</version>
  26. <scope>compile</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.eclipse.jetty</groupId>
  30. <artifactId>jetty-xml</artifactId>
  31. <version>${jetty.version}</version>
  32. <scope>compile</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.eclipse.jetty</groupId>
  36. <artifactId>jetty-security</artifactId>
  37. <version>${jetty.version}</version>
  38. <scope>compile</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>log4j</groupId>
  42. <artifactId>log4j</artifactId>
  43. <version>1.2.17</version>
  44. <optional>true</optional>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.slf4j</groupId>
  48. <artifactId>slf4j-api</artifactId>
  49. <version>1.7.6</version>
  50. <scope>test</scope>
  51. <optional>true</optional>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.dianping.cat</groupId>
  55. <artifactId>cat-client</artifactId>
  56. <version>2.0.0</version>
  57. </dependency>
  58. </dependencies>
  59. <build>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-compiler-plugin</artifactId>
  64. <version>2.3.2</version>
  65. <configuration>
  66. <source>1.6</source>
  67. <target>1.6</target>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-surefire-plugin</artifactId>
  73. <version>2.11</version>
  74. <configuration>
  75. <includes>
  76. <include>**/*Tests.java</include>
  77. </includes>
  78. </configuration>
  79. </plugin>
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-source-plugin</artifactId>
  83. <version>2.1.2</version>
  84. <executions>
  85. <execution>
  86. <id>attach-sources</id>
  87. <goals>
  88. <goal>jar</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <artifactId>maven-assembly-plugin</artifactId>
  95. <version>2.3</version>
  96. <configuration>
  97. <appendAssemblyId>false</appendAssemblyId>
  98. <outputDirectory>${project.build.directory}/releases/</outputDirectory>
  99. <descriptors>
  100. <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
  101. </descriptors>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <phase>package</phase>
  106. <goals>
  107. <goal>single</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. <profiles>
  115. <profile>
  116. <id>release-sign-artifacts</id>
  117. <activation>
  118. <property>
  119. <name>performRelease</name>
  120. <value>true</value>
  121. </property>
  122. </activation>
  123. <build>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-gpg-plugin</artifactId>
  128. <version>1.4</version>
  129. <executions>
  130. <execution>
  131. <id>sign-artifacts</id>
  132. <phase>verify</phase>
  133. <goals>
  134. <goal>sign</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. </profile>
  142. </profiles>
  143. </project>