pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  17. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  18. <parent>
  19. <artifactId>ambari-logsearch</artifactId>
  20. <groupId>org.apache.ambari</groupId>
  21. <version>2.4.0.0.0</version>
  22. </parent>
  23. <modelVersion>4.0.0</modelVersion>
  24. <groupId>org.apache.ambari</groupId>
  25. <artifactId>ambari-logsearch-portal</artifactId>
  26. <packaging>jar</packaging>
  27. <version>2.4.0.0.0</version>
  28. <url>http://maven.apache.org</url>
  29. <name>Ambari Logsearch Portal</name>
  30. <properties>
  31. <spring.version>4.2.5.RELEASE</spring.version>
  32. <spring.security.version>4.0.4.RELEASE</spring.security.version>
  33. <spring.ldap.version>2.0.4.RELEASE</spring.ldap.version>
  34. <jersey.version>1.19</jersey.version>
  35. <jetty-version>9.2.11.v20150529</jetty-version>
  36. </properties>
  37. <profiles>
  38. <!-- Dev Profile Start -->
  39. <profile>
  40. <id>dev</id>
  41. <activation>
  42. <activeByDefault>true</activeByDefault>
  43. </activation>
  44. <build>
  45. <finalName>LogSearch</finalName>
  46. <pluginManagement>
  47. <plugins>
  48. <plugin>
  49. <artifactId>maven-compiler-plugin</artifactId>
  50. <version>3.0</version>
  51. </plugin>
  52. <plugin>
  53. <artifactId>maven-dependency-plugin</artifactId>
  54. <version>2.8</version>
  55. </plugin>
  56. </plugins>
  57. </pluginManagement>
  58. <plugins>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-compiler-plugin</artifactId>
  62. <version>3.0</version>
  63. <configuration>
  64. <source>1.7</source>
  65. <target>1.7</target>
  66. </configuration>
  67. </plugin>
  68. <!-- copying resources UI -->
  69. <plugin>
  70. <artifactId>maven-resources-plugin</artifactId>
  71. <version>2.6</version>
  72. <executions>
  73. <execution>
  74. <id>copy-resources</id>
  75. <phase>process-resources</phase>
  76. <goals>
  77. <goal>copy-resources</goal>
  78. </goals>
  79. <configuration>
  80. <outputDirectory>${basedir}/target/classes/webapps/app</outputDirectory>
  81. <resources>
  82. <resource>
  83. <directory>src/main/webapp</directory>
  84. <filtering>false</filtering>
  85. </resource>
  86. </resources>
  87. </configuration>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <!-- Exec main class plugin -->
  92. <plugin>
  93. <groupId>org.codehaus.mojo</groupId>
  94. <artifactId>exec-maven-plugin</artifactId>
  95. <version>1.2.1</version>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>java</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <configuration>
  104. <mainClass>org.apache.ambari.logsearch.LogSearch</mainClass>
  105. <!-- <arguments> <argument></argument> </arguments> -->
  106. </configuration>
  107. </plugin>
  108. <!-- copy-dependencies -->
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-dependency-plugin</artifactId>
  112. <version>2.8</version>
  113. <executions>
  114. <execution>
  115. <id>copy-dependencies</id>
  116. <phase>package</phase>
  117. <goals>
  118. <goal>copy-dependencies</goal>
  119. </goals>
  120. <configuration>
  121. <artifactItems>*</artifactItems>
  122. <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
  123. <outputDirectory>${basedir}/target/libs</outputDirectory>
  124. <overWriteReleases>false</overWriteReleases>
  125. <overWriteSnapshots>false</overWriteSnapshots>
  126. <overWriteIfNewer>true</overWriteIfNewer>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <!-- - -->
  132. <!-- ant pacakge -->
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-antrun-plugin</artifactId>
  136. <version>1.7</version>
  137. <executions>
  138. <execution>
  139. <phase>package</phase>
  140. <configuration>
  141. <target>
  142. <!-- <taskdef resource="build.properties" classpathref="maven.plugin.classpath" /> -->
  143. <ant antfile="build.xml">
  144. <target name="package"/>
  145. </ant>
  146. </target>
  147. </configuration>
  148. <goals>
  149. <goal>run</goal>
  150. </goals>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.rat</groupId>
  156. <artifactId>apache-rat-plugin</artifactId>
  157. <configuration>
  158. <excludes>
  159. <exclude>src/main/webapp/libs/**/*</exclude>
  160. <exclude>production/r.js</exclude>
  161. <exclude>src/main/configsets/hadoop_logs/conf/managed-schema</exclude>
  162. <exclude>src/main/webapp/robots.txt</exclude>
  163. <exclude>src/main/webapp/styles/animate.css</exclude>
  164. <exclude>**/*.json</exclude>
  165. <exclude>src/main/webapp/styles/visualsearch.css</exclude>
  166. <exclude>**/*.log</exclude>
  167. </excludes>
  168. </configuration>
  169. <executions>
  170. <execution>
  171. <phase>test</phase>
  172. <goals>
  173. <goal>check</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <!-- /ant package -->
  179. </plugins>
  180. </build>
  181. </profile>
  182. <!-- Dev Profile End -->
  183. <!-- Production Profile Start -->
  184. <profile>
  185. <id>production</id>
  186. <build>
  187. <finalName>LogSearch</finalName>
  188. <pluginManagement>
  189. <plugins>
  190. <plugin>
  191. <artifactId>maven-compiler-plugin</artifactId>
  192. <version>3.0</version>
  193. </plugin>
  194. <plugin>
  195. <artifactId>maven-dependency-plugin</artifactId>
  196. <version>2.8</version>
  197. </plugin>
  198. </plugins>
  199. </pluginManagement>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <version>3.0</version>
  205. <configuration>
  206. <source>1.7</source>
  207. <target>1.7</target>
  208. </configuration>
  209. </plugin>
  210. <!-- copying resources UI -->
  211. <plugin>
  212. <artifactId>maven-resources-plugin</artifactId>
  213. <version>2.6</version>
  214. <executions>
  215. <execution>
  216. <id>copy-resources</id>
  217. <phase>process-resources</phase>
  218. <goals>
  219. <goal>copy-resources</goal>
  220. </goals>
  221. <configuration>
  222. <outputDirectory>${basedir}/target/classes/webapps/app</outputDirectory>
  223. <resources>
  224. <resource>
  225. <directory>target/webapp-build</directory>
  226. <filtering>false</filtering>
  227. </resource>
  228. </resources>
  229. </configuration>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. <!-- Exec main class plugin -->
  234. <plugin>
  235. <groupId>org.codehaus.mojo</groupId>
  236. <artifactId>exec-maven-plugin</artifactId>
  237. <version>1.2.1</version>
  238. <executions>
  239. <execution>
  240. <goals>
  241. <goal>java</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. <configuration>
  246. <mainClass>org.apache.ambari.logsearch.LogSearch</mainClass>
  247. <!-- <arguments> <argument></argument> </arguments> -->
  248. </configuration>
  249. </plugin>
  250. <!-- copy-dependencies -->
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-dependency-plugin</artifactId>
  254. <version>2.8</version>
  255. <executions>
  256. <execution>
  257. <id>copy-dependencies</id>
  258. <phase>package</phase>
  259. <goals>
  260. <goal>copy-dependencies</goal>
  261. </goals>
  262. <configuration>
  263. <artifactItems>*</artifactItems>
  264. <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
  265. <outputDirectory>${basedir}/target/libs</outputDirectory>
  266. <overWriteReleases>false</overWriteReleases>
  267. <overWriteSnapshots>false</overWriteSnapshots>
  268. <overWriteIfNewer>true</overWriteIfNewer>
  269. </configuration>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. <!-- - -->
  274. <!-- ant pacakge -->
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-antrun-plugin</artifactId>
  278. <version>1.7</version>
  279. <executions>
  280. <execution>
  281. <phase>package</phase>
  282. <configuration>
  283. <target>
  284. <!-- <taskdef resource="build.properties" classpathref="maven.plugin.classpath" /> -->
  285. <ant antfile="build.xml">
  286. <target name="package"/>
  287. </ant>
  288. </target>
  289. </configuration>
  290. <goals>
  291. <goal>run</goal>
  292. </goals>
  293. </execution>
  294. <!-- <execution>
  295. <id>Packag Install</id>
  296. <phase>generate-resources</phase>
  297. <configuration>
  298. <target>
  299. <exec executable="npm">
  300. <arg value="install" />
  301. </exec>
  302. </target>
  303. </configuration>
  304. <goals>
  305. <goal>run</goal>
  306. </goals>
  307. </execution>
  308. <execution>
  309. <id>Js Packaging</id>
  310. <phase>generate-resources</phase>
  311. <configuration>
  312. <target>
  313. <exec executable="gulp">
  314. <arg value="minify-css" />
  315. </exec>
  316. </target>
  317. </configuration>
  318. <goals>
  319. <goal>run</goal>
  320. </goals>
  321. </execution> -->
  322. </executions>
  323. </plugin>
  324. <plugin>
  325. <groupId>org.apache.rat</groupId>
  326. <artifactId>apache-rat-plugin</artifactId>
  327. <configuration>
  328. <excludes>
  329. <exclude>**/*</exclude>
  330. </excludes>
  331. </configuration>
  332. <executions>
  333. <execution>
  334. <phase>test</phase>
  335. <goals>
  336. <goal>check</goal>
  337. </goals>
  338. </execution>
  339. </executions>
  340. </plugin>
  341. </plugins>
  342. </build>
  343. </profile>
  344. <!-- Production Profile End -->
  345. <profile>
  346. <id>skipMinify</id>
  347. <activation>
  348. <activeByDefault>false</activeByDefault>
  349. </activation>
  350. <build>
  351. <finalName>LogSearch</finalName>
  352. <pluginManagement>
  353. <plugins>
  354. <plugin>
  355. <artifactId>maven-compiler-plugin</artifactId>
  356. <version>3.0</version>
  357. </plugin>
  358. <plugin>
  359. <artifactId>maven-dependency-plugin</artifactId>
  360. <version>2.8</version>
  361. </plugin>
  362. </plugins>
  363. </pluginManagement>
  364. <plugins>
  365. <plugin>
  366. <groupId>org.apache.maven.plugins</groupId>
  367. <artifactId>maven-compiler-plugin</artifactId>
  368. <version>3.0</version>
  369. <configuration>
  370. <source>1.7</source>
  371. <target>1.7</target>
  372. </configuration>
  373. </plugin>
  374. <!-- copying resources UI -->
  375. <plugin>
  376. <artifactId>maven-resources-plugin</artifactId>
  377. <version>2.6</version>
  378. <executions>
  379. <execution>
  380. <id>copy-resources</id>
  381. <phase>process-resources</phase>
  382. <goals>
  383. <goal>copy-resources</goal>
  384. </goals>
  385. <configuration>
  386. <outputDirectory>${basedir}/target/classes/webapps/app</outputDirectory>
  387. <resources>
  388. <resource>
  389. <directory>target/webapp-build</directory>
  390. <filtering>false</filtering>
  391. </resource>
  392. </resources>
  393. </configuration>
  394. </execution>
  395. </executions>
  396. </plugin>
  397. <!-- Exec main class plugin -->
  398. <plugin>
  399. <groupId>org.codehaus.mojo</groupId>
  400. <artifactId>exec-maven-plugin</artifactId>
  401. <version>1.2.1</version>
  402. <executions>
  403. <execution>
  404. <goals>
  405. <goal>java</goal>
  406. </goals>
  407. </execution>
  408. </executions>
  409. <configuration>
  410. <mainClass>org.apache.ambari.logsearch.LogSearch</mainClass>
  411. <!-- <arguments> <argument></argument> </arguments> -->
  412. </configuration>
  413. </plugin>
  414. <!-- copy-dependencies -->
  415. <plugin>
  416. <groupId>org.apache.maven.plugins</groupId>
  417. <artifactId>maven-dependency-plugin</artifactId>
  418. <version>2.8</version>
  419. <executions>
  420. <execution>
  421. <id>copy-dependencies</id>
  422. <phase>package</phase>
  423. <goals>
  424. <goal>copy-dependencies</goal>
  425. </goals>
  426. <configuration>
  427. <artifactItems>*</artifactItems>
  428. <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
  429. <outputDirectory>${basedir}/target/libs</outputDirectory>
  430. <overWriteReleases>false</overWriteReleases>
  431. <overWriteSnapshots>false</overWriteSnapshots>
  432. <overWriteIfNewer>true</overWriteIfNewer>
  433. </configuration>
  434. </execution>
  435. </executions>
  436. </plugin>
  437. <!-- - -->
  438. <!-- ant pacakge -->
  439. <plugin>
  440. <groupId>org.apache.maven.plugins</groupId>
  441. <artifactId>maven-antrun-plugin</artifactId>
  442. <version>1.7</version>
  443. <executions>
  444. <execution>
  445. <phase>package</phase>
  446. <configuration>
  447. <target>
  448. <!-- <taskdef resource="build.properties" classpathref="maven.plugin.classpath"
  449. /> -->
  450. <ant antfile="build.xml">
  451. <target name="package"/>
  452. </ant>
  453. </target>
  454. </configuration>
  455. <goals>
  456. <goal>run</goal>
  457. </goals>
  458. </execution>
  459. </executions>
  460. </plugin>
  461. </plugins>
  462. </build>
  463. </profile>
  464. </profiles>
  465. <dependencies>
  466. <!-- Spring dependencies -->
  467. <dependency>
  468. <groupId>org.springframework</groupId>
  469. <artifactId>spring-beans</artifactId>
  470. <version>${spring.version}</version>
  471. </dependency>
  472. <dependency>
  473. <groupId>org.springframework</groupId>
  474. <artifactId>spring-context</artifactId>
  475. <version>${spring.version}</version>
  476. </dependency>
  477. <!-- Spring Security -->
  478. <dependency>
  479. <groupId>org.springframework.security</groupId>
  480. <artifactId>spring-security-web</artifactId>
  481. <version>${spring.security.version}</version>
  482. </dependency>
  483. <dependency>
  484. <groupId>org.springframework.security</groupId>
  485. <artifactId>spring-security-core</artifactId>
  486. <version>${spring.security.version}</version>
  487. </dependency>
  488. <dependency>
  489. <groupId>org.springframework.security</groupId>
  490. <artifactId>spring-security-config</artifactId>
  491. <version>${spring.security.version}</version>
  492. </dependency>
  493. <dependency>
  494. <groupId>org.springframework.ldap</groupId>
  495. <artifactId>spring-ldap-core</artifactId>
  496. <version>${spring.ldap.version}</version>
  497. </dependency>
  498. <dependency>
  499. <groupId>org.springframework.security</groupId>
  500. <artifactId>spring-security-ldap</artifactId>
  501. <version>${spring.security.version}</version>
  502. </dependency>
  503. <dependency>
  504. <groupId>com.sun.jersey.contribs</groupId>
  505. <artifactId>jersey-spring</artifactId>
  506. <version>${jersey.version}</version>
  507. <exclusions>
  508. <exclusion>
  509. <groupId>org.springframework</groupId>
  510. <artifactId>*</artifactId>
  511. </exclusion>
  512. </exclusions>
  513. </dependency>
  514. <dependency>
  515. <groupId>com.sun.jersey.contribs</groupId>
  516. <artifactId>jersey-apache-client</artifactId>
  517. <version>${jersey.version}</version>
  518. </dependency>
  519. <dependency>
  520. <groupId>javax.servlet</groupId>
  521. <artifactId>javax.servlet-api</artifactId>
  522. <version>3.1.0</version>
  523. </dependency>
  524. <dependency>
  525. <groupId>log4j</groupId>
  526. <artifactId>log4j</artifactId>
  527. <version>1.2.17</version>
  528. </dependency>
  529. <dependency>
  530. <groupId>org.apache.solr</groupId>
  531. <artifactId>solr-solrj</artifactId>
  532. <version>${solr.version}</version>
  533. </dependency>
  534. <!-- Hadoop -->
  535. <dependency>
  536. <groupId>org.apache.hadoop</groupId>
  537. <artifactId>hadoop-common</artifactId>
  538. <version>2.7.0</version>
  539. <exclusions>
  540. <exclusion>
  541. <groupId>javax.servlet</groupId>
  542. <artifactId>servlet-api</artifactId>
  543. </exclusion>
  544. <exclusion>
  545. <groupId>org.mortbay.jetty</groupId>
  546. <artifactId>jetty</artifactId>
  547. </exclusion>
  548. <exclusion>
  549. <groupId>org.mortbay.jetty</groupId>
  550. <artifactId>jetty-util</artifactId>
  551. </exclusion>
  552. </exclusions>
  553. </dependency>
  554. <dependency>
  555. <groupId>commons-io</groupId>
  556. <artifactId>commons-io</artifactId>
  557. <version>2.4</version>
  558. </dependency>
  559. <dependency>
  560. <groupId>org.apache.ambari</groupId>
  561. <artifactId>ambari-logsearch-appender</artifactId>
  562. <version>${project.version}</version>
  563. </dependency>
  564. <dependency>
  565. <groupId>org.apache.ambari</groupId>
  566. <artifactId>ambari-logsearch-solr-client</artifactId>
  567. <version>${project.version}</version>
  568. </dependency>
  569. <dependency>
  570. <groupId>org.apache.ambari</groupId>
  571. <artifactId>ambari-metrics-common</artifactId>
  572. <version>${project.version}</version>
  573. </dependency>
  574. <dependency>
  575. <groupId>commons-cli</groupId>
  576. <artifactId>commons-cli</artifactId>
  577. <version>1.3.1</version>
  578. </dependency>
  579. <dependency>
  580. <groupId>org.springframework.security.kerberos</groupId>
  581. <artifactId>spring-security-kerberos-core</artifactId>
  582. <version>1.0.1.RELEASE</version>
  583. </dependency>
  584. <dependency>
  585. <groupId>org.springframework.security.kerberos</groupId>
  586. <artifactId>spring-security-kerberos-web</artifactId>
  587. <version>1.0.1.RELEASE</version>
  588. </dependency>
  589. <dependency>
  590. <groupId>org.springframework.security.kerberos</groupId>
  591. <artifactId>spring-security-kerberos-client</artifactId>
  592. <version>1.0.1.RELEASE</version>
  593. </dependency>
  594. <dependency>
  595. <groupId>org.eclipse.jetty</groupId>
  596. <artifactId>jetty-webapp</artifactId>
  597. <version>${jetty-version}</version>
  598. <exclusions>
  599. <exclusion>
  600. <groupId>org.springframework</groupId>
  601. <artifactId>*</artifactId>
  602. </exclusion>
  603. </exclusions>
  604. </dependency>
  605. <dependency>
  606. <groupId>org.eclipse.jetty</groupId>
  607. <artifactId>jetty-annotations</artifactId>
  608. <version>${jetty-version}</version>
  609. <exclusions>
  610. <exclusion>
  611. <groupId>org.springframework</groupId>
  612. <artifactId>*</artifactId>
  613. </exclusion>
  614. </exclusions>
  615. </dependency>
  616. <dependency>
  617. <groupId>cglib</groupId>
  618. <artifactId>cglib</artifactId>
  619. <version>3.2.4</version>
  620. </dependency>
  621. </dependencies>
  622. </project>