pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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.7.0-SNAPSHOT</version>
  27. <relativePath>..</relativePath>
  28. </parent>
  29. <artifactId>zookeeper</artifactId>
  30. <packaging>jar</packaging>
  31. <name>Apache ZooKeeper - Server</name>
  32. <description>ZooKeeper server</description>
  33. <dependencies>
  34. <dependency>
  35. <groupId>com.github.spotbugs</groupId>
  36. <artifactId>spotbugs-annotations</artifactId>
  37. <scope>provided</scope>
  38. <optional>true</optional>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.hamcrest</groupId>
  42. <artifactId>hamcrest-all</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-collections</groupId>
  47. <artifactId>commons-collections</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>commons-lang</groupId>
  52. <artifactId>commons-lang</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.zookeeper</groupId>
  56. <artifactId>zookeeper-jute</artifactId>
  57. <version>${project.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>commons-cli</groupId>
  61. <artifactId>commons-cli</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.yetus</groupId>
  66. <artifactId>audience-annotations</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>io.netty</groupId>
  70. <artifactId>netty-handler</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.netty</groupId>
  74. <artifactId>netty-transport-native-epoll</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.slf4j</groupId>
  78. <artifactId>slf4j-api</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.slf4j</groupId>
  82. <artifactId>slf4j-log4j12</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.eclipse.jetty</groupId>
  86. <artifactId>jetty-server</artifactId>
  87. <scope>provided</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.eclipse.jetty</groupId>
  91. <artifactId>jetty-servlet</artifactId>
  92. <scope>provided</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.fasterxml.jackson.core</groupId>
  96. <artifactId>jackson-databind</artifactId>
  97. <scope>provided</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.googlecode.json-simple</groupId>
  101. <artifactId>json-simple</artifactId>
  102. <scope>provided</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.bouncycastle</groupId>
  106. <artifactId>bcprov-jdk15on</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.bouncycastle</groupId>
  111. <artifactId>bcpkix-jdk15on</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>jline</groupId>
  116. <artifactId>jline</artifactId>
  117. <scope>provided</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>io.dropwizard.metrics</groupId>
  121. <artifactId>metrics-core</artifactId>
  122. <scope>provided</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>log4j</groupId>
  126. <artifactId>log4j</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.kerby</groupId>
  130. <artifactId>kerb-core</artifactId>
  131. <scope>test</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.kerby</groupId>
  135. <artifactId>kerb-simplekdc</artifactId>
  136. <scope>test</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.kerby</groupId>
  140. <artifactId>kerby-config</artifactId>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.mockito</groupId>
  145. <artifactId>mockito-core</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.jmockit</groupId>
  150. <artifactId>jmockit</artifactId>
  151. <scope>test</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>junit</groupId>
  155. <artifactId>junit</artifactId>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.xerial.snappy</groupId>
  160. <artifactId>snappy-java</artifactId>
  161. <scope>provided</scope>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.codehaus.mojo</groupId>
  168. <artifactId>properties-maven-plugin</artifactId>
  169. <executions>
  170. <execution>
  171. <phase>initialize</phase>
  172. <goals>
  173. <goal>read-project-properties</goal>
  174. </goals>
  175. <configuration>
  176. <files>
  177. <file>${basedir}/src/main/resources/git.properties</file>
  178. </files>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin> <!-- ${maven.build.timestamp} does not support timezone :( -->
  184. <groupId>org.codehaus.mojo</groupId>
  185. <artifactId>build-helper-maven-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <id>tbuild-time</id>
  189. <goals>
  190. <goal>timestamp-property</goal>
  191. </goals>
  192. <configuration>
  193. <name>build.time</name>
  194. <pattern>MM/dd/yyyy HH:mm zz</pattern>
  195. <locale>en_US</locale>
  196. <timeZone>GMT</timeZone>
  197. </configuration>
  198. </execution>
  199. <execution>
  200. <phase>generate-sources</phase>
  201. <goals>
  202. <goal>add-source</goal>
  203. </goals>
  204. <configuration>
  205. <sources>
  206. <source>${project.build.directory}/generated-sources/java</source>
  207. </sources>
  208. </configuration>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-compiler-plugin</artifactId>
  215. <executions>
  216. <execution>
  217. <id>pre-compile-vergen</id>
  218. <phase>generate-sources</phase>
  219. <configuration>
  220. <includes>
  221. <include>org/apache/zookeeper/version/**/*.java</include>
  222. </includes>
  223. </configuration>
  224. <goals>
  225. <goal>compile</goal>
  226. </goals>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.codehaus.mojo</groupId>
  232. <artifactId>exec-maven-plugin</artifactId>
  233. <executions>
  234. <execution>
  235. <id>generate-version-info</id>
  236. <phase>generate-sources</phase>
  237. <goals>
  238. <goal>exec</goal>
  239. </goals>
  240. <configuration>
  241. <workingDirectory>${project.basedir}/src/main/java/</workingDirectory>
  242. <executable>java</executable>
  243. <arguments>
  244. <argument>-classpath</argument>
  245. <classpath />
  246. <argument>org.apache.zookeeper.version.util.VerGen</argument>
  247. <argument>${project.version}</argument>
  248. <argument>${git.commit.id}</argument>
  249. <argument>${build.time}</argument>
  250. <argument>${project.basedir}/target/generated-sources/java</argument>
  251. </arguments>
  252. </configuration>
  253. </execution>
  254. </executions>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-dependency-plugin</artifactId>
  259. <executions>
  260. <execution>
  261. <id>copy-dependencies</id>
  262. <phase>package</phase>
  263. <goals>
  264. <goal>copy-dependencies</goal>
  265. </goals>
  266. <configuration>
  267. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  268. <overWriteReleases>false</overWriteReleases>
  269. <overWriteSnapshots>true</overWriteSnapshots>
  270. <excludeTransitive>false</excludeTransitive>
  271. </configuration>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-surefire-plugin</artifactId>
  278. <configuration>
  279. <includes>
  280. <include>**/*Test.java</include>
  281. </includes>
  282. <forkCount>${surefire-forkcount}</forkCount>
  283. <reuseForks>false</reuseForks>
  284. <argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:${org.jmockit:jmockit:jar}</argLine>
  285. <basedir>${project.basedir}</basedir>
  286. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  287. <systemPropertyVariables>
  288. <build.test.dir>${project.build.directory}/surefire</build.test.dir>
  289. <zookeeper.DigestAuthenticationProvider.superDigest>super:D/InIHSb7yEEbrWz8b9l71RjZJU=</zookeeper.DigestAuthenticationProvider.superDigest>
  290. </systemPropertyVariables>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-jar-plugin</artifactId>
  296. <executions>
  297. <execution>
  298. <id>publish-test-jar</id>
  299. <goals>
  300. <goal>test-jar</goal>
  301. </goals>
  302. </execution>
  303. </executions>
  304. </plugin>
  305. </plugins>
  306. </build>
  307. </project>