pom.xml 19 KB

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