pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  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. </properties>
  36. <profiles>
  37. <!-- Dev Profile Start -->
  38. <profile>
  39. <id>dev</id>
  40. <activation>
  41. <activeByDefault>true</activeByDefault>
  42. </activation>
  43. <build>
  44. <finalName>LogSearch</finalName>
  45. <pluginManagement>
  46. <plugins>
  47. <plugin>
  48. <artifactId>maven-compiler-plugin</artifactId>
  49. <version>3.0</version>
  50. </plugin>
  51. <plugin>
  52. <artifactId>maven-dependency-plugin</artifactId>
  53. <version>2.8</version>
  54. </plugin>
  55. </plugins>
  56. </pluginManagement>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <version>3.0</version>
  62. <configuration>
  63. <source>1.7</source>
  64. <target>1.7</target>
  65. </configuration>
  66. </plugin>
  67. <!-- copying resources UI -->
  68. <plugin>
  69. <artifactId>maven-resources-plugin</artifactId>
  70. <version>2.6</version>
  71. <executions>
  72. <execution>
  73. <id>copy-resources</id>
  74. <phase>process-resources</phase>
  75. <goals>
  76. <goal>copy-resources</goal>
  77. </goals>
  78. <configuration>
  79. <outputDirectory>${basedir}/target/classes/webapps/app</outputDirectory>
  80. <resources>
  81. <resource>
  82. <directory>src/main/webapp</directory>
  83. <filtering>false</filtering>
  84. </resource>
  85. </resources>
  86. </configuration>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <!-- Exec main class plugin -->
  91. <plugin>
  92. <groupId>org.codehaus.mojo</groupId>
  93. <artifactId>exec-maven-plugin</artifactId>
  94. <version>1.2.1</version>
  95. <executions>
  96. <execution>
  97. <goals>
  98. <goal>java</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. <configuration>
  103. <mainClass>org.apache.ambari.logsearch.LogSearch</mainClass>
  104. <!-- <arguments> <argument></argument> </arguments> -->
  105. </configuration>
  106. </plugin>
  107. <!-- copy-dependencies -->
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-dependency-plugin</artifactId>
  111. <version>2.8</version>
  112. <executions>
  113. <execution>
  114. <id>copy-dependencies</id>
  115. <phase>package</phase>
  116. <goals>
  117. <goal>copy-dependencies</goal>
  118. </goals>
  119. <configuration>
  120. <artifactItems>*</artifactItems>
  121. <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
  122. <outputDirectory>${basedir}/target/libs</outputDirectory>
  123. <overWriteReleases>false</overWriteReleases>
  124. <overWriteSnapshots>false</overWriteSnapshots>
  125. <overWriteIfNewer>true</overWriteIfNewer>
  126. </configuration>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <!-- - -->
  131. <!-- ant pacakge -->
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-antrun-plugin</artifactId>
  135. <version>1.7</version>
  136. <executions>
  137. <execution>
  138. <phase>package</phase>
  139. <configuration>
  140. <target>
  141. <!-- <taskdef resource="build.properties" classpathref="maven.plugin.classpath" /> -->
  142. <ant antfile="build.xml">
  143. <target name="package"/>
  144. </ant>
  145. </target>
  146. </configuration>
  147. <goals>
  148. <goal>run</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.rat</groupId>
  155. <artifactId>apache-rat-plugin</artifactId>
  156. <configuration>
  157. <excludes>
  158. <exclude>src/main/webapp/libs/**/*</exclude>
  159. <exclude>production/r.js</exclude>
  160. <exclude>src/main/configsets/hadoop_logs/conf/managed-schema</exclude>
  161. <exclude>src/main/webapp/robots.txt</exclude>
  162. <exclude>src/main/webapp/styles/animate.css</exclude>
  163. <exclude>**/*.json</exclude>
  164. <exclude>src/main/webapp/styles/visualsearch.css</exclude>
  165. <exclude>**/*.log</exclude>
  166. </excludes>
  167. </configuration>
  168. <executions>
  169. <execution>
  170. <phase>test</phase>
  171. <goals>
  172. <goal>check</goal>
  173. </goals>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <!-- /ant package -->
  178. </plugins>
  179. </build>
  180. </profile>
  181. <!-- Dev Profile End -->
  182. <!-- Production Profile Start -->
  183. <profile>
  184. <id>production</id>
  185. <build>
  186. <finalName>LogSearch</finalName>
  187. <pluginManagement>
  188. <plugins>
  189. <plugin>
  190. <artifactId>maven-compiler-plugin</artifactId>
  191. <version>3.0</version>
  192. </plugin>
  193. <plugin>
  194. <artifactId>maven-dependency-plugin</artifactId>
  195. <version>2.8</version>
  196. </plugin>
  197. </plugins>
  198. </pluginManagement>
  199. <plugins>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-compiler-plugin</artifactId>
  203. <version>3.0</version>
  204. <configuration>
  205. <source>1.7</source>
  206. <target>1.7</target>
  207. </configuration>
  208. </plugin>
  209. <!-- copying resources UI -->
  210. <plugin>
  211. <artifactId>maven-resources-plugin</artifactId>
  212. <version>2.6</version>
  213. <executions>
  214. <execution>
  215. <id>copy-resources</id>
  216. <phase>process-resources</phase>
  217. <goals>
  218. <goal>copy-resources</goal>
  219. </goals>
  220. <configuration>
  221. <outputDirectory>${basedir}/target/classes/webapps/app</outputDirectory>
  222. <resources>
  223. <resource>
  224. <directory>target/webapp-build</directory>
  225. <filtering>false</filtering>
  226. </resource>
  227. </resources>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <!-- Exec main class plugin -->
  233. <plugin>
  234. <groupId>org.codehaus.mojo</groupId>
  235. <artifactId>exec-maven-plugin</artifactId>
  236. <version>1.2.1</version>
  237. <executions>
  238. <execution>
  239. <goals>
  240. <goal>java</goal>
  241. </goals>
  242. </execution>
  243. </executions>
  244. <configuration>
  245. <mainClass>org.apache.ambari.logsearch.LogSearch</mainClass>
  246. <!-- <arguments> <argument></argument> </arguments> -->
  247. </configuration>
  248. </plugin>
  249. <!-- copy-dependencies -->
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-dependency-plugin</artifactId>
  253. <version>2.8</version>
  254. <executions>
  255. <execution>
  256. <id>copy-dependencies</id>
  257. <phase>package</phase>
  258. <goals>
  259. <goal>copy-dependencies</goal>
  260. </goals>
  261. <configuration>
  262. <artifactItems>*</artifactItems>
  263. <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
  264. <outputDirectory>${basedir}/target/libs</outputDirectory>
  265. <overWriteReleases>false</overWriteReleases>
  266. <overWriteSnapshots>false</overWriteSnapshots>
  267. <overWriteIfNewer>true</overWriteIfNewer>
  268. </configuration>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. <!-- - -->
  273. <!-- ant pacakge -->
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-antrun-plugin</artifactId>
  277. <version>1.7</version>
  278. <executions>
  279. <execution>
  280. <phase>package</phase>
  281. <configuration>
  282. <target>
  283. <!-- <taskdef resource="build.properties" classpathref="maven.plugin.classpath" /> -->
  284. <ant antfile="build.xml">
  285. <target name="package"/>
  286. </ant>
  287. </target>
  288. </configuration>
  289. <goals>
  290. <goal>run</goal>
  291. </goals>
  292. </execution>
  293. <!-- <execution>
  294. <id>Packag Install</id>
  295. <phase>generate-resources</phase>
  296. <configuration>
  297. <target>
  298. <exec executable="npm">
  299. <arg value="install" />
  300. </exec>
  301. </target>
  302. </configuration>
  303. <goals>
  304. <goal>run</goal>
  305. </goals>
  306. </execution>
  307. <execution>
  308. <id>Js Packaging</id>
  309. <phase>generate-resources</phase>
  310. <configuration>
  311. <target>
  312. <exec executable="gulp">
  313. <arg value="minify-css" />
  314. </exec>
  315. </target>
  316. </configuration>
  317. <goals>
  318. <goal>run</goal>
  319. </goals>
  320. </execution> -->
  321. </executions>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.apache.rat</groupId>
  325. <artifactId>apache-rat-plugin</artifactId>
  326. <configuration>
  327. <excludes>
  328. <exclude>**/*</exclude>
  329. </excludes>
  330. </configuration>
  331. <executions>
  332. <execution>
  333. <phase>test</phase>
  334. <goals>
  335. <goal>check</goal>
  336. </goals>
  337. </execution>
  338. </executions>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. </profile>
  343. <!-- Production Profile End -->
  344. <profile>
  345. <id>skipMinify</id>
  346. <activation>
  347. <activeByDefault>false</activeByDefault>
  348. </activation>
  349. <build>
  350. <finalName>LogSearch</finalName>
  351. <pluginManagement>
  352. <plugins>
  353. <plugin>
  354. <artifactId>maven-compiler-plugin</artifactId>
  355. <version>3.0</version>
  356. </plugin>
  357. <plugin>
  358. <artifactId>maven-dependency-plugin</artifactId>
  359. <version>2.8</version>
  360. </plugin>
  361. </plugins>
  362. </pluginManagement>
  363. <plugins>
  364. <plugin>
  365. <groupId>org.apache.maven.plugins</groupId>
  366. <artifactId>maven-compiler-plugin</artifactId>
  367. <version>3.0</version>
  368. <configuration>
  369. <source>1.7</source>
  370. <target>1.7</target>
  371. </configuration>
  372. </plugin>
  373. <!-- copying resources UI -->
  374. <plugin>
  375. <artifactId>maven-resources-plugin</artifactId>
  376. <version>2.6</version>
  377. <executions>
  378. <execution>
  379. <id>copy-resources</id>
  380. <phase>process-resources</phase>
  381. <goals>
  382. <goal>copy-resources</goal>
  383. </goals>
  384. <configuration>
  385. <outputDirectory>${basedir}/target/classes/webapps/app</outputDirectory>
  386. <resources>
  387. <resource>
  388. <directory>target/webapp-build</directory>
  389. <filtering>false</filtering>
  390. </resource>
  391. </resources>
  392. </configuration>
  393. </execution>
  394. </executions>
  395. </plugin>
  396. <!-- Exec main class plugin -->
  397. <plugin>
  398. <groupId>org.codehaus.mojo</groupId>
  399. <artifactId>exec-maven-plugin</artifactId>
  400. <version>1.2.1</version>
  401. <executions>
  402. <execution>
  403. <goals>
  404. <goal>java</goal>
  405. </goals>
  406. </execution>
  407. </executions>
  408. <configuration>
  409. <mainClass>org.apache.ambari.logsearch.LogSearch</mainClass>
  410. <!-- <arguments> <argument></argument> </arguments> -->
  411. </configuration>
  412. </plugin>
  413. <!-- copy-dependencies -->
  414. <plugin>
  415. <groupId>org.apache.maven.plugins</groupId>
  416. <artifactId>maven-dependency-plugin</artifactId>
  417. <version>2.8</version>
  418. <executions>
  419. <execution>
  420. <id>copy-dependencies</id>
  421. <phase>package</phase>
  422. <goals>
  423. <goal>copy-dependencies</goal>
  424. </goals>
  425. <configuration>
  426. <artifactItems>*</artifactItems>
  427. <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
  428. <outputDirectory>${basedir}/target/libs</outputDirectory>
  429. <overWriteReleases>false</overWriteReleases>
  430. <overWriteSnapshots>false</overWriteSnapshots>
  431. <overWriteIfNewer>true</overWriteIfNewer>
  432. </configuration>
  433. </execution>
  434. </executions>
  435. </plugin>
  436. <!-- - -->
  437. <!-- ant pacakge -->
  438. <plugin>
  439. <groupId>org.apache.maven.plugins</groupId>
  440. <artifactId>maven-antrun-plugin</artifactId>
  441. <version>1.7</version>
  442. <executions>
  443. <execution>
  444. <phase>package</phase>
  445. <configuration>
  446. <target>
  447. <!-- <taskdef resource="build.properties" classpathref="maven.plugin.classpath"
  448. /> -->
  449. <ant antfile="build.xml">
  450. <target name="package"/>
  451. </ant>
  452. </target>
  453. </configuration>
  454. <goals>
  455. <goal>run</goal>
  456. </goals>
  457. </execution>
  458. </executions>
  459. </plugin>
  460. </plugins>
  461. </build>
  462. </profile>
  463. </profiles>
  464. <dependencies>
  465. <!-- Spring dependencies -->
  466. <dependency>
  467. <groupId>org.springframework</groupId>
  468. <artifactId>spring-beans</artifactId>
  469. <version>${spring.version}</version>
  470. </dependency>
  471. <dependency>
  472. <groupId>org.springframework</groupId>
  473. <artifactId>spring-context</artifactId>
  474. <version>${spring.version}</version>
  475. </dependency>
  476. <!-- Spring Security -->
  477. <dependency>
  478. <groupId>org.springframework.security</groupId>
  479. <artifactId>spring-security-web</artifactId>
  480. <version>${spring.security.version}</version>
  481. </dependency>
  482. <dependency>
  483. <groupId>org.springframework.security</groupId>
  484. <artifactId>spring-security-core</artifactId>
  485. <version>${spring.security.version}</version>
  486. </dependency>
  487. <dependency>
  488. <groupId>org.springframework.security</groupId>
  489. <artifactId>spring-security-config</artifactId>
  490. <version>${spring.security.version}</version>
  491. </dependency>
  492. <dependency>
  493. <groupId>org.springframework.ldap</groupId>
  494. <artifactId>spring-ldap-core</artifactId>
  495. <version>${spring.ldap.version}</version>
  496. </dependency>
  497. <dependency>
  498. <groupId>org.springframework.security</groupId>
  499. <artifactId>spring-security-ldap</artifactId>
  500. <version>${spring.security.version}</version>
  501. </dependency>
  502. <dependency>
  503. <groupId>com.sun.jersey.contribs</groupId>
  504. <artifactId>jersey-spring</artifactId>
  505. <version>${jersey.version}</version>
  506. <exclusions>
  507. <exclusion>
  508. <groupId>org.springframework</groupId>
  509. <artifactId>*</artifactId>
  510. </exclusion>
  511. </exclusions>
  512. </dependency>
  513. <dependency>
  514. <groupId>com.sun.jersey.contribs</groupId>
  515. <artifactId>jersey-apache-client</artifactId>
  516. <version>${jersey.version}</version>
  517. </dependency>
  518. <dependency>
  519. <groupId>javax.servlet</groupId>
  520. <artifactId>javax.servlet-api</artifactId>
  521. <version>3.1.0</version>
  522. </dependency>
  523. <dependency>
  524. <groupId>log4j</groupId>
  525. <artifactId>log4j</artifactId>
  526. <version>1.2.17</version>
  527. </dependency>
  528. <dependency>
  529. <groupId>org.apache.solr</groupId>
  530. <artifactId>solr-solrj</artifactId>
  531. <version>${solr.version}</version>
  532. </dependency>
  533. <!-- Hadoop -->
  534. <dependency>
  535. <groupId>commons-httpclient</groupId>
  536. <artifactId>commons-httpclient</artifactId>
  537. <version>3.0.1</version>
  538. </dependency>
  539. <dependency>
  540. <groupId>org.apache.hadoop</groupId>
  541. <artifactId>hadoop-common</artifactId>
  542. <version>2.7.0</version>
  543. </dependency>
  544. <dependency>
  545. <groupId>commons-io</groupId>
  546. <artifactId>commons-io</artifactId>
  547. <version>2.4</version>
  548. </dependency>
  549. <dependency>
  550. <groupId>commons-codec</groupId>
  551. <artifactId>commons-codec</artifactId>
  552. </dependency>
  553. <dependency>
  554. <groupId>org.apache.ambari</groupId>
  555. <artifactId>ambari-logsearch-appender</artifactId>
  556. <version>${project.version}</version>
  557. </dependency>
  558. <dependency>
  559. <groupId>org.apache.ambari</groupId>
  560. <artifactId>ambari-logsearch-solr-client</artifactId>
  561. <version>${project.version}</version>
  562. </dependency>
  563. <dependency>
  564. <groupId>org.apache.ambari</groupId>
  565. <artifactId>ambari-metrics-common</artifactId>
  566. <version>${project.version}</version>
  567. </dependency>
  568. </dependencies>
  569. </project>