pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>llxy.cs.sw.lpp</groupId>
  6. <artifactId>hadoop_dw</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>hadoop_dw Maven Webapp</name>
  10. <!-- FIXME change it to the project's website -->
  11. <url>http://www.example.com</url>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <version>4.9</version>
  22. </dependency>
  23. <!-- https://mvnrepository.com/artifact/org.hibernate/ejb3-persistence -->
  24. <dependency>
  25. <groupId>org.hibernate</groupId>
  26. <artifactId>ejb3-persistence</artifactId>
  27. <version>1.0.2.GA</version>
  28. <type>pom</type>
  29. </dependency>
  30. <!-- https://mvnrepository.com/artifact/org.apache.htrace/htrace-core4 -->
  31. <dependency>
  32. <groupId>org.apache.htrace</groupId>
  33. <artifactId>htrace-core4</artifactId>
  34. <version>4.1.0-incubating</version>
  35. </dependency>
  36. <!-- https://mvnrepository.com/artifact/org.apache.sqoop/sqoop 1.4.7-->
  37. <dependency>
  38. <groupId>org.apache.sqoop</groupId>
  39. <artifactId>sqoop</artifactId>
  40. <version>1.4.7</version>
  41. <classifier>hadoop260</classifier>
  42. </dependency>
  43. <!--
  44. <dependency>
  45. <groupId>?</groupId>
  46. <artifactId>?</artifactId>
  47. <version>1.0.0</version>
  48. <scope>system</scope>
  49. <systemPath>${project.basedir}/libs/?.jar</systemPath>
  50. </dependency>-->
  51. <dependency>
  52. <groupId>org.elasticsearch.client</groupId>
  53. <artifactId>elasticsearch-rest-client</artifactId>
  54. <version>7.0.1</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.elasticsearch.client</groupId>
  58. <artifactId>transport</artifactId>
  59. <version>7.0.1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.elasticsearch.client</groupId>
  63. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  64. <version>7.0.1</version>
  65. </dependency>
  66. </dependencies>
  67. <build>
  68. <finalName>hadoop_dw</finalName>
  69. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  70. <plugins>
  71. <plugin>
  72. <artifactId>maven-clean-plugin</artifactId>
  73. <version>3.1.0</version>
  74. </plugin>
  75. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  76. <plugin>
  77. <artifactId>maven-resources-plugin</artifactId>
  78. <version>3.0.2</version>
  79. </plugin>
  80. <plugin>
  81. <artifactId>maven-compiler-plugin</artifactId>
  82. <version>3.8.0</version>
  83. </plugin>
  84. <plugin>
  85. <artifactId>maven-surefire-plugin</artifactId>
  86. <version>2.22.1</version>
  87. </plugin>
  88. <plugin>
  89. <artifactId>maven-war-plugin</artifactId>
  90. <version>3.2.2</version>
  91. </plugin>
  92. <plugin>
  93. <artifactId>maven-install-plugin</artifactId>
  94. <version>2.5.2</version>
  95. </plugin>
  96. <plugin>
  97. <artifactId>maven-deploy-plugin</artifactId>
  98. <version>2.8.2</version>
  99. </plugin>
  100. <plugin>
  101. <artifactId>maven-dependency-plugin</artifactId>
  102. <executions>
  103. <execution>
  104. <id>copy-dependencies</id>
  105. <phase>prepare-package</phase>
  106. <goals>
  107. <goal>copy-dependencies</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. <configuration>
  112. <includeTypes>jar</includeTypes>
  113. <overWriteSnapshots>true</overWriteSnapshots>
  114. <type>jar</type>
  115. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>3.3</version>
  122. <configuration>
  123. <source>${maven.compiler.source}</source>
  124. <target>${maven.compiler.target}</target>
  125. <encoding>UTF-8</encoding>
  126. <compilerArguments>
  127. <extdirs>src\main\webapp\WEB-INF\lib</extdirs>
  128. </compilerArguments>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-war-plugin</artifactId>
  134. <configuration>
  135. <webResources>
  136. <resource>
  137. <directory>src\main\webapp\WEB-INF\lib</directory>
  138. <targetPath>WEB-INF/lib/</targetPath>
  139. <includes>
  140. <include>**/*.jar</include>
  141. </includes>
  142. </resource>
  143. </webResources>
  144. </configuration>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.apache.tomcat.maven</groupId>
  148. <artifactId>tomcat7-maven-plugin</artifactId>
  149. <version>2.1</version>
  150. <configuration>
  151. <port>9090</port>
  152. <path>/hadoop_dw</path>
  153. <uriEncoding>UTF-8</uriEncoding>
  154. <finalName>hadoop_dw</finalName>
  155. <server>tomcat7</server>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. </pluginManagement>
  160. <resources>
  161. <resource>
  162. <directory>src/main/java</directory>
  163. <includes>
  164. <include>**/*.properties</include>
  165. <include>**/*.xml</include>
  166. </includes>
  167. <filtering>false</filtering>
  168. </resource>
  169. <resource>
  170. <targetPath>${project.build.directory}/classes</targetPath>
  171. <directory>src/main/resources</directory>
  172. <filtering>true</filtering>
  173. <includes>
  174. <include>**/*.xml</include>
  175. <include>**/*.properties</include>
  176. </includes>
  177. </resource>
  178. </resources>
  179. </build>
  180. </project>