pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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-jute</artifactId>
  31. <packaging>jar</packaging>
  32. <name>Apache ZooKeeper - Jute</name>
  33. <description>ZooKeeper jute</description>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.apache.yetus</groupId>
  37. <artifactId>audience-annotations</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>junit</groupId>
  41. <artifactId>junit</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. </dependencies>
  45. <build>
  46. <plugins>
  47. <plugin>
  48. <groupId>org.codehaus.mojo</groupId>
  49. <artifactId>javacc-maven-plugin</artifactId>
  50. <version>2.6</version>
  51. <executions>
  52. <execution>
  53. <phase>generate-sources</phase>
  54. <id>javacc</id>
  55. <goals>
  56. <goal>javacc</goal>
  57. </goals>
  58. <configuration>
  59. <sourceDirectory>${project.basedir}/src/main/java/org/apache/jute/compiler/generated/</sourceDirectory>
  60. <includes>
  61. <include>rcc.jj</include>
  62. </includes>
  63. <lookAhead>2</lookAhead>
  64. <isStatic>false</isStatic>
  65. <outputDirectory>${project.build.directory}/classes/</outputDirectory>
  66. </configuration>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. <plugin>
  71. <artifactId>maven-compiler-plugin</artifactId>
  72. <version>2.3.2</version>
  73. <executions>
  74. <execution>
  75. <id>pre-compile-jute</id>
  76. <phase>generate-sources</phase>
  77. <goals>
  78. <goal>compile</goal>
  79. </goals>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.codehaus.mojo</groupId>
  85. <artifactId>exec-maven-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <id>generate-Java-Jute</id>
  89. <phase>generate-sources</phase>
  90. <goals>
  91. <goal>exec</goal>
  92. </goals>
  93. <configuration>
  94. <workingDirectory>${project.build.directory}/classes/</workingDirectory>
  95. <executable>java</executable>
  96. <arguments>
  97. <argument>-classpath</argument>
  98. <classpath />
  99. <argument>org.apache.jute.compiler.generated.Rcc</argument>
  100. <argument>-l</argument>
  101. <argument>java</argument>
  102. <argument>${project.basedir}/src/main/resources/zookeeper.jute</argument>
  103. </arguments>
  104. </configuration>
  105. </execution>
  106. <execution>
  107. <id>generate-C-Jute</id>
  108. <phase>generate-sources</phase>
  109. <goals>
  110. <goal>exec</goal>
  111. </goals>
  112. <configuration>
  113. <workingDirectory>${project.basedir}/../zookeeper-client/zookeeper-client-c/generated/</workingDirectory>
  114. <executable>java</executable>
  115. <arguments>
  116. <argument>-classpath</argument>
  117. <classpath />
  118. <argument>org.apache.jute.compiler.generated.Rcc</argument>
  119. <argument>-l</argument>
  120. <argument>c</argument>
  121. <argument>${project.basedir}/src/main/resources/zookeeper.jute</argument>
  122. </arguments>
  123. </configuration>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.codehaus.mojo</groupId>
  129. <artifactId>build-helper-maven-plugin</artifactId>
  130. <executions>
  131. <execution>
  132. <id>jute-as-dependency</id>
  133. <phase>generate-sources</phase>
  134. <goals>
  135. <goal>add-source</goal>
  136. </goals>
  137. <configuration>
  138. <sources>
  139. <source>${basedir}/target/classes</source>
  140. </sources>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <!-- spotbugs does not make sense for generated code -->
  147. <groupId>com.github.spotbugs</groupId>
  148. <artifactId>spotbugs-maven-plugin</artifactId>
  149. <configuration>
  150. <skip>true</skip>
  151. </configuration>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </project>