pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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>zookeeper-client</artifactId>
  26. <version>3.6.0-SNAPSHOT</version>
  27. <relativePath>..</relativePath>
  28. </parent>
  29. <groupId>org.apache.zookeeper</groupId>
  30. <artifactId>zookeeper-client-c</artifactId>
  31. <packaging>jar</packaging>
  32. <name>Apache ZooKeeper - Client - C</name>
  33. <description>ZooKeeper c client</description>
  34. <build>
  35. <plugins>
  36. <plugin>
  37. <groupId>org.apache.maven.plugins</groupId>
  38. <artifactId>maven-antrun-plugin</artifactId>
  39. <executions>
  40. <execution>
  41. <id>generate-sources</id>
  42. <phase>generate-sources</phase>
  43. <configuration>
  44. <tasks>
  45. <mkdir dir="target/c" />
  46. </tasks>
  47. </configuration>
  48. <goals>
  49. <goal>run</goal>
  50. </goals>
  51. </execution>
  52. <execution>
  53. <id>test-cppunit</id>
  54. <phase>test</phase>
  55. <configuration>
  56. <tasks>
  57. <exec dir="${basedir}/target/c" executable="make" failonerror="true">
  58. <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH};/usr/lib" />
  59. <env key="PATH" path="${env.PATH};${basedir};" />
  60. <env key="CALLER" value="ANT" />
  61. <env key="CLOVER_HOME" value="${basedir}/../../zookeeper-server/target" />
  62. <env key="base_dir" value="${basedir}/../.." />
  63. <arg line="clean check" />
  64. </exec>
  65. </tasks>
  66. </configuration>
  67. <goals>
  68. <goal>run</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.codehaus.mojo</groupId>
  75. <artifactId>exec-maven-plugin</artifactId>
  76. <executions>
  77. <execution>
  78. <id>autoreconf</id>
  79. <phase>test-compile</phase>
  80. <goals>
  81. <goal>exec</goal>
  82. </goals>
  83. <configuration>
  84. <workingDirectory>${project.basedir}</workingDirectory>
  85. <executable>autoreconf</executable>
  86. <environmentVariables>
  87. <ACLOCAL>aclocal -I /usr/share/aclocal</ACLOCAL>
  88. </environmentVariables>
  89. <arguments>
  90. <argument>-if</argument>
  91. </arguments>
  92. </configuration>
  93. </execution>
  94. <execution>
  95. <id>configure</id>
  96. <phase>test-compile</phase>
  97. <goals>
  98. <goal>exec</goal>
  99. </goals>
  100. <configuration>
  101. <workingDirectory>${project.build.directory}/c</workingDirectory>
  102. <executable>${project.basedir}/configure</executable>
  103. <environmentVariables>
  104. <base_dir>${project.basedir}/../..</base_dir>
  105. <CALLER>ANT</CALLER>
  106. </environmentVariables>
  107. <arguments>
  108. <argument>--prefix=${project.build.directory}/c</argument>
  109. <argument>--enable-gcov</argument>
  110. </arguments>
  111. </configuration>
  112. </execution>
  113. <!--execution> TODO: Why is this not working?!
  114. <id>test-cppunit</id>
  115. <phase>test</phase>
  116. <goals>
  117. <goal>exec</goal>
  118. </goals>
  119. <configuration>
  120. <workingDirectory>${project.build.directory}/c</workingDirectory>
  121. <executable>make</executable>
  122. <environmentVariables>
  123. <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH};/usr/lib</LD_LIBRARY_PATH>
  124. <PATH>${env.PATH};${project.basedir};</PATH>
  125. <CALLER>ANT</CALLER>
  126. <CLOVER_HOME></CLOVER_HOME>
  127. <base_dir>${project.basedir}/../..</base_dir>
  128. </environmentVariables>
  129. <arguments>
  130. <argument>clean check</argument>
  131. </arguments>
  132. </configuration>
  133. </execution-->
  134. </executions>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. </project>