pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. https://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <parent>
  17. <artifactId>hadoop-ozone</artifactId>
  18. <groupId>org.apache.hadoop</groupId>
  19. <version>0.5.0-SNAPSHOT</version>
  20. </parent>
  21. <name>Apache Hadoop Ozone Recon</name>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-ozone-recon</artifactId>
  24. <properties>
  25. <jooq.version>3.11.10</jooq.version>
  26. <spring.version>5.1.3.RELEASE</spring.version>
  27. </properties>
  28. <build>
  29. <plugins>
  30. <plugin>
  31. <groupId>org.codehaus.mojo</groupId>
  32. <artifactId>exec-maven-plugin</artifactId>
  33. <version>${exec-maven-plugin.version}</version>
  34. <executions>
  35. <execution>
  36. <phase>generate-resources</phase>
  37. <goals>
  38. <goal>java</goal>
  39. </goals>
  40. </execution>
  41. </executions>
  42. <configuration>
  43. <executable>java</executable>
  44. <classpathScope>compile</classpathScope>
  45. <mainClass>org.hadoop.ozone.recon.codegen.JooqCodeGenerator</mainClass>
  46. <arguments>
  47. <argument>${project.build.directory}/generated-sources/java</argument>
  48. </arguments>
  49. </configuration>
  50. </plugin>
  51. <plugin>
  52. <groupId>org.codehaus.mojo</groupId>
  53. <artifactId>build-helper-maven-plugin</artifactId>
  54. <executions>
  55. <execution>
  56. <id>add-source</id>
  57. <phase>generate-sources</phase>
  58. <goals>
  59. <goal>add-source</goal>
  60. </goals>
  61. <configuration>
  62. <sources>
  63. <source>${project.build.directory}/generated-sources/java</source>
  64. </sources>
  65. </configuration>
  66. </execution>
  67. </executions>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.codehaus.mojo</groupId>
  71. <artifactId>findbugs-maven-plugin</artifactId>
  72. <configuration>
  73. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  74. </configuration>
  75. </plugin>
  76. <!--
  77. 1. used for local installation of node and yarn
  78. 2. to install dependencies with yarn install
  79. 3. building the frontend application
  80. -->
  81. <plugin>
  82. <groupId>com.github.eirslett</groupId>
  83. <artifactId>frontend-maven-plugin</artifactId>
  84. <version>1.6</version>
  85. <configuration>
  86. <installDirectory>target</installDirectory>
  87. <workingDirectory>${basedir}/src/main/resources/webapps/recon/ozone-recon-web</workingDirectory>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <id>Install node and yarn locally to the project</id>
  92. <goals>
  93. <goal>install-node-and-yarn</goal>
  94. </goals>
  95. <configuration>
  96. <nodeVersion>v12.1.0</nodeVersion>
  97. <yarnVersion>v1.9.2</yarnVersion>
  98. </configuration>
  99. </execution>
  100. <execution>
  101. <id>yarn install</id>
  102. <goals>
  103. <goal>yarn</goal>
  104. </goals>
  105. <configuration>
  106. <arguments>install</arguments>
  107. </configuration>
  108. </execution>
  109. <execution>
  110. <id>Build frontend</id>
  111. <goals>
  112. <goal>yarn</goal>
  113. </goals>
  114. <configuration>
  115. <arguments>run build</arguments>
  116. </configuration>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-resources-plugin</artifactId>
  123. <executions>
  124. <execution>
  125. <id>Copy frontend build to target</id>
  126. <phase>process-resources</phase>
  127. <goals>
  128. <goal>copy-resources</goal>
  129. </goals>
  130. <configuration>
  131. <outputDirectory>${project.build.outputDirectory}/webapps/recon</outputDirectory>
  132. <resources>
  133. <resource>
  134. <directory>${basedir}/src/main/resources/webapps/recon/ozone-recon-web/build</directory>
  135. <filtering>true</filtering>
  136. </resource>
  137. </resources>
  138. </configuration>
  139. </execution>
  140. <execution>
  141. <id>Copy frontend static files to target</id>
  142. <phase>process-resources</phase>
  143. <goals>
  144. <goal>copy-resources</goal>
  145. </goals>
  146. <configuration>
  147. <outputDirectory>${project.build.outputDirectory}/webapps/static</outputDirectory>
  148. <resources>
  149. <resource>
  150. <directory>${basedir}/src/main/resources/webapps/recon/ozone-recon-web/build/static</directory>
  151. <filtering>true</filtering>
  152. </resource>
  153. </resources>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. <dependencies>
  161. <dependency>
  162. <groupId>org.apache.hadoop</groupId>
  163. <artifactId>hadoop-ozone-common</artifactId>
  164. <exclusions>
  165. <exclusion>
  166. <artifactId>jersey-server</artifactId>
  167. <groupId>com.sun.jersey</groupId>
  168. </exclusion>
  169. <exclusion>
  170. <artifactId>jersey-core</artifactId>
  171. <groupId>com.sun.jersey</groupId>
  172. </exclusion>
  173. <exclusion>
  174. <artifactId>jersey-servlet</artifactId>
  175. <groupId>com.sun.jersey</groupId>
  176. </exclusion>
  177. </exclusions>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.apache.hadoop</groupId>
  181. <artifactId>hadoop-ozone-reconcodegen</artifactId>
  182. <version>${version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.apache.hadoop</groupId>
  186. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.google.inject</groupId>
  190. <artifactId>guice</artifactId>
  191. <version>${guice.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.google.inject.extensions</groupId>
  195. <artifactId>guice-servlet</artifactId>
  196. <version>${guice.version}</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.glassfish.jersey.containers</groupId>
  200. <artifactId>jersey-container-servlet</artifactId>
  201. <version>2.27</version>
  202. <exclusions>
  203. <exclusion>
  204. <groupId>org.glassfish.hk2</groupId>
  205. <artifactId>hk2-api</artifactId>
  206. </exclusion>
  207. </exclusions>
  208. <scope>compile</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.glassfish.jersey.containers</groupId>
  212. <artifactId>jersey-container-servlet-core</artifactId>
  213. <version>2.27</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.glassfish.hk2</groupId>
  217. <artifactId>guice-bridge</artifactId>
  218. <version>2.5.0</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.glassfish.jersey.core</groupId>
  222. <artifactId>jersey-server</artifactId>
  223. <version>2.27</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.glassfish.jersey.media</groupId>
  227. <artifactId>jersey-media-json-jackson</artifactId>
  228. <version>2.27</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.google.inject.extensions</groupId>
  232. <artifactId>guice-assistedinject</artifactId>
  233. <version>${guice.version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.glassfish.jersey.inject</groupId>
  237. <artifactId>jersey-hk2</artifactId>
  238. <version>2.27</version>
  239. <exclusions>
  240. <exclusion>
  241. <artifactId>hk2-api</artifactId>
  242. <groupId>org.glassfish.hk2</groupId>
  243. </exclusion>
  244. <exclusion>
  245. <groupId>org.glassfish.hk2.external</groupId>
  246. <artifactId>aopalliance-repackaged</artifactId>
  247. </exclusion>
  248. <exclusion>
  249. <groupId>org.glassfish.hk2</groupId>
  250. <artifactId>hk2-utils</artifactId>
  251. </exclusion>
  252. </exclusions>
  253. </dependency>
  254. <dependency>
  255. <groupId>junit</groupId>
  256. <artifactId>junit</artifactId>
  257. <scope>test</scope>
  258. </dependency>
  259. <dependency>
  260. <groupId>org.mockito</groupId>
  261. <artifactId>mockito-core</artifactId>
  262. <version>2.8.9</version>
  263. <scope>test</scope>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.powermock</groupId>
  267. <artifactId>powermock-module-junit4</artifactId>
  268. <version>1.7.4</version>
  269. <scope>test</scope>
  270. <exclusions>
  271. <exclusion>
  272. <groupId>org.javassist</groupId>
  273. <artifactId>javassist</artifactId>
  274. </exclusion>
  275. </exclusions>
  276. </dependency>
  277. <dependency>
  278. <groupId>org.powermock</groupId>
  279. <artifactId>powermock-api-mockito2</artifactId>
  280. <version>1.7.4</version>
  281. <scope>test</scope>
  282. <exclusions>
  283. <exclusion>
  284. <groupId>org.mockito</groupId>
  285. <artifactId>mockito-core</artifactId>
  286. </exclusion>
  287. </exclusions>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.jooq</groupId>
  291. <artifactId>jooq</artifactId>
  292. <version>${jooq.version}</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>org.jooq</groupId>
  296. <artifactId>jooq-meta</artifactId>
  297. <version>${jooq.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.jooq</groupId>
  301. <artifactId>jooq-codegen</artifactId>
  302. <version>${jooq.version}</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>com.jolbox</groupId>
  306. <artifactId>bonecp</artifactId>
  307. <version>0.8.0.RELEASE</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>org.xerial</groupId>
  311. <artifactId>sqlite-jdbc</artifactId>
  312. <version>3.25.2</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>org.springframework</groupId>
  316. <artifactId>spring-jdbc</artifactId>
  317. <version>${spring.version}</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>javax.activation</groupId>
  321. <artifactId>activation</artifactId>
  322. <version>1.1.1</version>
  323. </dependency>
  324. </dependencies>
  325. </project>