pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.github.stuxuhai</groupId>
  5. <artifactId>hdata</artifactId>
  6. <version>0.2.8</version>
  7. <name>HData</name>
  8. <packaging>pom</packaging>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.7</maven.compiler.source>
  12. <maven.compiler.target>1.7</maven.compiler.target>
  13. <slf4j.version>1.7.12</slf4j.version>
  14. <zookeeper.version>3.4.6</zookeeper.version>
  15. <hadoop.version>2.7.1</hadoop.version>
  16. <hbase.version>1.1.2</hbase.version>
  17. <hive.version>1.2.1</hive.version>
  18. <wit.version>2.4.0-beta</wit.version>
  19. <zookeeper.scope>compile</zookeeper.scope>
  20. <hadoop.scope>compile</hadoop.scope>
  21. <hbase.scope>compile</hbase.scope>
  22. <hive.scope>compile</hive.scope>
  23. </properties>
  24. <dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>com.github.stuxuhai</groupId>
  28. <artifactId>hdata-api</artifactId>
  29. <version>${project.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.github.stuxuhai</groupId>
  33. <artifactId>hdata-core</artifactId>
  34. <version>${project.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.google.guava</groupId>
  38. <artifactId>guava</artifactId>
  39. <version>19.0</version>
  40. </dependency>
  41. </dependencies>
  42. </dependencyManagement>
  43. <profiles>
  44. <profile>
  45. <id>cdh5</id>
  46. <properties>
  47. <cdh.version>cdh5.7.4</cdh.version>
  48. <zookeeper.version>3.4.5-${cdh.version}</zookeeper.version>
  49. <hadoop.version>2.6.0-${cdh.version}</hadoop.version>
  50. <hbase.version>1.2.0-${cdh.version}</hbase.version>
  51. <hive.version>1.1.0-${cdh.version}</hive.version>
  52. <zookeeper.scope>provided</zookeeper.scope>
  53. <hadoop.scope>provided</hadoop.scope>
  54. <hbase.scope>provided</hbase.scope>
  55. <hive.scope>provided</hive.scope>
  56. </properties>
  57. <repositories>
  58. <repository>
  59. <id>cloudera-repos</id>
  60. <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
  61. <name>Cloudera Repositories</name>
  62. <snapshots>
  63. <enabled>false</enabled>
  64. </snapshots>
  65. </repository>
  66. </repositories>
  67. </profile>
  68. <profile>
  69. <id>copy-dependency</id>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-dependency-plugin</artifactId>
  75. <configuration>
  76. <includeScope>runtime</includeScope>
  77. </configuration>
  78. <executions>
  79. <execution>
  80. <phase>package</phase>
  81. <goals>
  82. <goal>copy-dependencies</goal>
  83. </goals>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. </plugins>
  88. </build>
  89. </profile>
  90. <profile>
  91. <id>make-package</id>
  92. <properties>
  93. <modulesOutputDirectory>${basedir}/../target/all-modules/${project.artifactId}</modulesOutputDirectory>
  94. </properties>
  95. <modules>
  96. <module>assembly</module>
  97. </modules>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-jar-plugin</artifactId>
  103. <configuration>
  104. <outputDirectory>${modulesOutputDirectory}</outputDirectory>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-dependency-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <phase>package</phase>
  113. <goals>
  114. <goal>copy-dependencies</goal>
  115. </goals>
  116. <configuration>
  117. <outputDirectory>${modulesOutputDirectory}</outputDirectory>
  118. <includeScope>runtime</includeScope>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </profile>
  126. </profiles>
  127. <build>
  128. <pluginManagement>
  129. <plugins>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-compiler-plugin</artifactId>
  133. <version>3.5.1</version>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-jar-plugin</artifactId>
  138. <version>2.6</version>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-dependency-plugin</artifactId>
  143. <version>2.10</version>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-assembly-plugin</artifactId>
  148. <version>2.5.3</version>
  149. </plugin>
  150. </plugins>
  151. </pluginManagement>
  152. </build>
  153. <modules>
  154. <module>hdata-api</module>
  155. <module>hdata-core</module>
  156. <module>hdata-console</module>
  157. <module>hdata-csv</module>
  158. <module>hdata-jdbc</module>
  159. <module>hdata-ftp</module>
  160. <module>hdata-http</module>
  161. <module>hdata-kafka</module>
  162. <module>hdata-hdfs</module>
  163. <module>hdata-hive</module>
  164. <module>hdata-hbase</module>
  165. <module>hdata-mongodb</module>
  166. <module>hdata-excel</module>
  167. <module>hdata-wit</module>
  168. </modules>
  169. </project>