pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <!--
  4. /**
  5. * Licensed to the Apache Software Foundation (ASF) under one
  6. * or more contributor license agreements. See the NOTICE file
  7. * distributed with this work for additional information
  8. * regarding copyright ownership. The ASF licenses this file
  9. * to you under the Apache License, Version 2.0 (the
  10. * "License"); you may not use this file except in compliance
  11. * with the License. You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. */
  21. -->
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>org.apache.zookeeper</groupId>
  25. <artifactId>parent</artifactId>
  26. <version>3.6.0-SNAPSHOT</version>
  27. <relativePath>..</relativePath>
  28. </parent>
  29. <groupId>org.apache.zookeeper</groupId>
  30. <artifactId>zookeeper</artifactId>
  31. <packaging>jar</packaging>
  32. <name>Apache ZooKeeper - Server</name>
  33. <description>ZooKeeper server</description>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.github.spotbugs</groupId>
  37. <artifactId>spotbugs-annotations</artifactId>
  38. <scope>provided</scope>
  39. <optional>true</optional>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.hamcrest</groupId>
  43. <artifactId>hamcrest-all</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>commons-collections</groupId>
  48. <artifactId>commons-collections</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>commons-lang</groupId>
  53. <artifactId>commons-lang</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.zookeeper</groupId>
  57. <artifactId>zookeeper-jute</artifactId>
  58. <version>${project.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>commons-cli</groupId>
  62. <artifactId>commons-cli</artifactId>
  63. <scope>provided</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.yetus</groupId>
  67. <artifactId>audience-annotations</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.netty</groupId>
  71. <artifactId>netty-handler</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>io.netty</groupId>
  75. <artifactId>netty-transport-native-epoll</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.slf4j</groupId>
  79. <artifactId>slf4j-api</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.slf4j</groupId>
  83. <artifactId>slf4j-log4j12</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.eclipse.jetty</groupId>
  87. <artifactId>jetty-server</artifactId>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.eclipse.jetty</groupId>
  92. <artifactId>jetty-servlet</artifactId>
  93. <scope>provided</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.fasterxml.jackson.core</groupId>
  97. <artifactId>jackson-databind</artifactId>
  98. <scope>provided</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.googlecode.json-simple</groupId>
  102. <artifactId>json-simple</artifactId>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.bouncycastle</groupId>
  107. <artifactId>bcprov-jdk15on</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.bouncycastle</groupId>
  112. <artifactId>bcpkix-jdk15on</artifactId>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>jline</groupId>
  117. <artifactId>jline</artifactId>
  118. <scope>provided</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>io.dropwizard.metrics</groupId>
  122. <artifactId>metrics-core</artifactId>
  123. <scope>provided</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>log4j</groupId>
  127. <artifactId>log4j</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.kerby</groupId>
  131. <artifactId>kerb-core</artifactId>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.kerby</groupId>
  136. <artifactId>kerb-simplekdc</artifactId>
  137. <scope>test</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.kerby</groupId>
  141. <artifactId>kerby-config</artifactId>
  142. <scope>test</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.mockito</groupId>
  146. <artifactId>mockito-core</artifactId>
  147. <scope>test</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>junit</groupId>
  151. <artifactId>junit</artifactId>
  152. <scope>test</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.xerial.snappy</groupId>
  156. <artifactId>snappy-java</artifactId>
  157. <scope>provided</scope>
  158. </dependency>
  159. </dependencies>
  160. <build>
  161. <plugins>
  162. <plugin>
  163. <groupId>org.codehaus.mojo</groupId>
  164. <artifactId>properties-maven-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <phase>initialize</phase>
  168. <goals>
  169. <goal>read-project-properties</goal>
  170. </goals>
  171. <configuration>
  172. <files>
  173. <file>${basedir}/src/main/resources/git.properties</file>
  174. </files>
  175. </configuration>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <plugin> <!-- ${maven.build.timestamp} does not support timezone :( -->
  180. <groupId>org.codehaus.mojo</groupId>
  181. <artifactId>build-helper-maven-plugin</artifactId>
  182. <executions>
  183. <execution>
  184. <id>tbuild-time</id>
  185. <goals>
  186. <goal>timestamp-property</goal>
  187. </goals>
  188. <configuration>
  189. <name>build.time</name>
  190. <pattern>MM/dd/yyyy HH:mm zz</pattern>
  191. <locale>en_US</locale>
  192. <timeZone>GMT</timeZone>
  193. </configuration>
  194. </execution>
  195. <execution>
  196. <phase>generate-sources</phase>
  197. <goals>
  198. <goal>add-source</goal>
  199. </goals>
  200. <configuration>
  201. <sources>
  202. <source>${project.build.directory}/generated-sources/java</source>
  203. </sources>
  204. </configuration>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-compiler-plugin</artifactId>
  211. <executions>
  212. <execution>
  213. <id>pre-compile-vergen</id>
  214. <phase>generate-sources</phase>
  215. <configuration>
  216. <includes>
  217. <include>org/apache/zookeeper/version/**/*.java</include>
  218. </includes>
  219. </configuration>
  220. <goals>
  221. <goal>compile</goal>
  222. </goals>
  223. </execution>
  224. </executions>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.codehaus.mojo</groupId>
  228. <artifactId>exec-maven-plugin</artifactId>
  229. <executions>
  230. <execution>
  231. <id>generate-version-info</id>
  232. <phase>generate-sources</phase>
  233. <goals>
  234. <goal>exec</goal>
  235. </goals>
  236. <configuration>
  237. <workingDirectory>${project.basedir}/src/main/java/</workingDirectory>
  238. <executable>java</executable>
  239. <arguments>
  240. <argument>-classpath</argument>
  241. <classpath />
  242. <argument>org.apache.zookeeper.version.util.VerGen</argument>
  243. <argument>${project.version}</argument>
  244. <argument>${git.commit.id}</argument>
  245. <argument>${build.time}</argument>
  246. <argument>${project.basedir}/target/generated-sources/java</argument>
  247. </arguments>
  248. </configuration>
  249. </execution>
  250. </executions>
  251. </plugin>
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-dependency-plugin</artifactId>
  255. <executions>
  256. <execution>
  257. <id>copy-dependencies</id>
  258. <phase>package</phase>
  259. <goals>
  260. <goal>copy-dependencies</goal>
  261. </goals>
  262. <configuration>
  263. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  264. <overWriteReleases>false</overWriteReleases>
  265. <overWriteSnapshots>true</overWriteSnapshots>
  266. <excludeTransitive>false</excludeTransitive>
  267. </configuration>
  268. </execution>
  269. </executions>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-surefire-plugin</artifactId>
  274. <configuration>
  275. <includes>
  276. <include>**/*Test.java</include>
  277. </includes>
  278. <forkCount>${surefire-forkcount}</forkCount>
  279. <reuseForks>false</reuseForks>
  280. <argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber}</argLine>
  281. <basedir>${project.basedir}</basedir>
  282. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  283. <systemPropertyVariables>
  284. <build.test.dir>${project.build.directory}/surefire</build.test.dir>
  285. <zookeeper.DigestAuthenticationProvider.superDigest>super:D/InIHSb7yEEbrWz8b9l71RjZJU=</zookeeper.DigestAuthenticationProvider.superDigest>
  286. </systemPropertyVariables>
  287. </configuration>
  288. </plugin>
  289. </plugins>
  290. </build>
  291. </project>