pom.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. <?xml version="1.0" encoding="UTF-8"?>
  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"
  17. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  18. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  19. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <parent>
  21. <artifactId>ambari-metrics</artifactId>
  22. <groupId>org.apache.ambari</groupId>
  23. <version>2.4.0.0.0</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>ambari-metrics-timelineservice</artifactId>
  27. <version>2.4.0.0.0</version>
  28. <name>Ambari Metrics Collector</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <!-- Needed for generating FindBugs warnings using parent pom -->
  32. <!--<yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>-->
  33. <protobuf.version>2.5.0</protobuf.version>
  34. <hadoop.version>2.7.1.2.3.4.0-3347</hadoop.version>
  35. <phoenix.version>4.4.0.2.3.4.0-3347</phoenix.version>
  36. <hbase.version>1.1.2.2.3.4.0-3347</hbase.version>
  37. </properties>
  38. <build>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.codehaus.mojo</groupId>
  42. <artifactId>build-helper-maven-plugin</artifactId>
  43. <version>1.8</version>
  44. <executions>
  45. <execution>
  46. <id>parse-version</id>
  47. <phase>validate</phase>
  48. <goals>
  49. <goal>parse-version</goal>
  50. </goals>
  51. </execution>
  52. <execution>
  53. <id>regex-property</id>
  54. <goals>
  55. <goal>regex-property</goal>
  56. </goals>
  57. <configuration>
  58. <name>ambariVersion</name>
  59. <value>${project.version}</value>
  60. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  61. <replacement>$1.$2.$3.$4</replacement>
  62. <failIfNoMatch>false</failIfNoMatch>
  63. </configuration>
  64. </execution>
  65. </executions>
  66. </plugin>
  67. <plugin>
  68. <artifactId>maven-dependency-plugin</artifactId>
  69. <executions>
  70. <execution>
  71. <phase>package</phase>
  72. <goals>
  73. <goal>copy-dependencies</goal>
  74. </goals>
  75. <configuration>
  76. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  77. <includeScope>compile</includeScope>
  78. <excludeScope>test</excludeScope>
  79. <excludeArtifactIds>jasper-runtime,jasper-compiler</excludeArtifactIds>
  80. </configuration>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <version>3.0</version>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>rpm-maven-plugin</artifactId>
  91. <version>2.0.1</version>
  92. <executions>
  93. <execution>
  94. <!-- unbinds rpm creation from maven lifecycle -->
  95. <phase>none</phase>
  96. <goals>
  97. <goal>rpm</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. <configuration>
  102. <name>ambari-metrics-collector</name>
  103. <copyright>2012, Apache Software Foundation</copyright>
  104. <group>Development</group>
  105. <description>Maven Recipe: RPM Package.</description>
  106. <autoRequires>false</autoRequires>
  107. <requires>
  108. <require>${python.ver}</require>
  109. </requires>
  110. <defaultFilemode>644</defaultFilemode>
  111. <defaultDirmode>755</defaultDirmode>
  112. <defaultUsername>root</defaultUsername>
  113. <defaultGroupname>root</defaultGroupname>
  114. <mappings>
  115. <mapping>
  116. <!--jars-->
  117. <directory>/usr/lib/ambari-metrics-collector/</directory>
  118. <sources>
  119. <source>
  120. <location>target/lib</location>
  121. </source>
  122. <source>
  123. <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
  124. </source>
  125. </sources>
  126. </mapping>
  127. <mapping>
  128. <!--embedded applications-->
  129. <directory>/usr/lib/ams-hbase/</directory>
  130. <sources>
  131. <source>
  132. <location>target/embedded/${hbase.folder}</location>
  133. <excludes>
  134. <exclude>bin/**</exclude>
  135. <exclude>bin/*</exclude>
  136. </excludes>
  137. </source>
  138. </sources>
  139. </mapping>
  140. <mapping>
  141. <directory>/usr/lib/ams-hbase/bin</directory>
  142. <filemode>755</filemode>
  143. <sources>
  144. <source>
  145. <location>target/embedded/${hbase.folder}/bin</location>
  146. </source>
  147. </sources>
  148. </mapping>
  149. <mapping>
  150. <directory>/usr/lib/ams-hbase/lib/</directory>
  151. <sources>
  152. <source>
  153. <location>target/lib</location>
  154. <includes>
  155. <include>phoenix*.jar</include>
  156. <include>antlr*.jar</include>
  157. </includes>
  158. </source>
  159. </sources>
  160. </mapping>
  161. <mapping>
  162. <directory>/usr/sbin</directory>
  163. <filemode>755</filemode>
  164. <username>root</username>
  165. <groupname>root</groupname>
  166. <directoryIncluded>false</directoryIncluded>
  167. <sources>
  168. <source>
  169. <location>conf/unix/ambari-metrics-collector</location>
  170. <filter>false</filter>
  171. </source>
  172. </sources>
  173. </mapping>
  174. <mapping>
  175. <directory>/etc/ambari-metrics-collector/conf</directory>
  176. <configuration>true</configuration>
  177. <sources>
  178. <source>
  179. <location>conf/unix/ams-env.sh</location>
  180. </source>
  181. <source>
  182. <location>conf/unix/ams-site.xml</location>
  183. </source>
  184. <source>
  185. <location>conf/unix/log4j.properties</location>
  186. </source>
  187. <source>
  188. <location>target/embedded/${hbase.folder}/conf/hbase-site.xml</location>
  189. </source>
  190. </sources>
  191. </mapping>
  192. <mapping>
  193. <directory>/etc/ams-hbase/conf</directory>
  194. <configuration>true</configuration>
  195. <sources>
  196. <source>
  197. <location>target/embedded/${hbase.folder}/conf</location>
  198. <includes>
  199. <include>*.*</include>
  200. </includes>
  201. </source>
  202. </sources>
  203. </mapping>
  204. <mapping>
  205. <directory>/var/run/ams-hbase</directory>
  206. </mapping>
  207. <mapping>
  208. <directory>/var/lib/ambari-metrics-collector</directory>
  209. </mapping>
  210. </mappings>
  211. </configuration>
  212. </plugin>
  213. <plugin>
  214. <artifactId>maven-surefire-plugin</artifactId>
  215. <configuration>
  216. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  217. <forkMode>always</forkMode>
  218. <argLine>-XX:-UseSplitVerifier</argLine>
  219. </configuration>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.vafer</groupId>
  223. <artifactId>jdeb</artifactId>
  224. <version>1.0.1</version>
  225. <executions>
  226. <execution>
  227. <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
  228. <id>stub-execution</id>
  229. <phase>none</phase>
  230. <goals>
  231. <goal>jdeb</goal>
  232. </goals>
  233. </execution>
  234. </executions>
  235. <configuration>
  236. <skip>true</skip>
  237. <attach>false</attach>
  238. <submodules>false</submodules>
  239. <controlDir>${project.basedir}/../src/main/package/deb/control</controlDir>
  240. </configuration>
  241. </plugin>
  242. </plugins>
  243. </build>
  244. <dependencies>
  245. <dependency>
  246. <groupId>org.apache.phoenix</groupId>
  247. <artifactId>phoenix-core</artifactId>
  248. <version>${phoenix.version}</version>
  249. <exclusions>
  250. <exclusion>
  251. <groupId>org.apache.hadoop</groupId>
  252. <artifactId>hadoop-common</artifactId>
  253. </exclusion>
  254. <exclusion>
  255. <groupId>org.apache.hadoop</groupId>
  256. <artifactId>hadoop-annotations</artifactId>
  257. </exclusion>
  258. </exclusions>
  259. </dependency>
  260. <dependency>
  261. <groupId>commons-lang</groupId>
  262. <artifactId>commons-lang</artifactId>
  263. <version>2.5</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.ambari</groupId>
  267. <artifactId>ambari-metrics-common</artifactId>
  268. <version>2.4.0.0.0</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>javax.servlet</groupId>
  272. <artifactId>servlet-api</artifactId>
  273. <version>2.5</version>
  274. </dependency>
  275. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  276. <dependency>
  277. <groupId>org.apache.hadoop</groupId>
  278. <artifactId>hadoop-common</artifactId>
  279. <version>${hadoop.version}</version>
  280. <scope>provided</scope>
  281. <exclusions>
  282. <exclusion>
  283. <groupId>commons-el</groupId>
  284. <artifactId>commons-el</artifactId>
  285. </exclusion>
  286. <exclusion>
  287. <groupId>tomcat</groupId>
  288. <artifactId>jasper-runtime</artifactId>
  289. </exclusion>
  290. <exclusion>
  291. <groupId>tomcat</groupId>
  292. <artifactId>jasper-compiler</artifactId>
  293. </exclusion>
  294. <exclusion>
  295. <groupId>org.mortbay.jetty</groupId>
  296. <artifactId>jsp-2.1-jetty</artifactId>
  297. </exclusion>
  298. </exclusions>
  299. </dependency>
  300. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  301. <dependency>
  302. <groupId>org.apache.hadoop</groupId>
  303. <artifactId>hadoop-annotations</artifactId>
  304. <version>${hadoop.version}</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.mockito</groupId>
  308. <artifactId>mockito-all</artifactId>
  309. <scope>test</scope>
  310. </dependency>
  311. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  312. <dependency>
  313. <groupId>org.apache.hadoop</groupId>
  314. <artifactId>hadoop-common</artifactId>
  315. <version>${hadoop.version}</version>
  316. <type>test-jar</type>
  317. <scope>test</scope>
  318. </dependency>
  319. <dependency>
  320. <groupId>com.google.inject.extensions</groupId>
  321. <artifactId>guice-servlet</artifactId>
  322. <version>3.0</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>com.google.protobuf</groupId>
  326. <artifactId>protobuf-java</artifactId>
  327. <version>${protobuf.version}</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>junit</groupId>
  331. <artifactId>junit</artifactId>
  332. <scope>test</scope>
  333. <version>4.10</version>
  334. </dependency>
  335. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  336. <dependency>
  337. <groupId>com.google.inject</groupId>
  338. <artifactId>guice</artifactId>
  339. <version>3.0</version>
  340. </dependency>
  341. <dependency>
  342. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  343. <artifactId>jersey-test-framework-core</artifactId>
  344. <version>1.11</version>
  345. <scope>test</scope>
  346. </dependency>
  347. <dependency>
  348. <groupId>com.sun.jersey</groupId>
  349. <artifactId>jersey-json</artifactId>
  350. <version>1.11</version>
  351. </dependency>
  352. <dependency>
  353. <groupId>com.sun.jersey.contribs</groupId>
  354. <artifactId>jersey-guice</artifactId>
  355. <version>1.11</version>
  356. </dependency>
  357. <dependency>
  358. <groupId>com.sun.jersey</groupId>
  359. <artifactId>jersey-server</artifactId>
  360. <version>1.11</version>
  361. </dependency>
  362. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  363. <dependency>
  364. <groupId>org.apache.hadoop</groupId>
  365. <artifactId>hadoop-yarn-common</artifactId>
  366. <version>${hadoop.version}</version>
  367. <type>test-jar</type>
  368. <scope>test</scope>
  369. </dependency>
  370. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  371. <dependency>
  372. <groupId>org.apache.hadoop</groupId>
  373. <artifactId>hadoop-yarn-common</artifactId>
  374. <version>${hadoop.version}</version>
  375. </dependency>
  376. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  377. <dependency>
  378. <groupId>org.apache.hadoop</groupId>
  379. <artifactId>hadoop-yarn-api</artifactId>
  380. <version>${hadoop.version}</version>
  381. </dependency>
  382. <dependency>
  383. <groupId>javax.xml.bind</groupId>
  384. <artifactId>jaxb-api</artifactId>
  385. <version>2.2.2</version>
  386. </dependency>
  387. <dependency>
  388. <groupId>org.codehaus.jettison</groupId>
  389. <artifactId>jettison</artifactId>
  390. <version>1.1</version>
  391. </dependency>
  392. <dependency>
  393. <groupId>com.sun.jersey</groupId>
  394. <artifactId>jersey-core</artifactId>
  395. <version>1.11</version>
  396. </dependency>
  397. <dependency>
  398. <groupId>com.sun.jersey</groupId>
  399. <artifactId>jersey-client</artifactId>
  400. <version>1.11</version>
  401. </dependency>
  402. <dependency>
  403. <groupId>org.apache.httpcomponents</groupId>
  404. <artifactId>httpclient</artifactId>
  405. <version>4.2.5</version>
  406. </dependency>
  407. <dependency>
  408. <groupId>com.google.guava</groupId>
  409. <artifactId>guava</artifactId>
  410. <version>14.0.1</version>
  411. </dependency>
  412. <dependency>
  413. <groupId>commons-logging</groupId>
  414. <artifactId>commons-logging</artifactId>
  415. <version>1.1.1</version>
  416. </dependency>
  417. <dependency>
  418. <groupId>org.apache.commons</groupId>
  419. <artifactId>commons-math3</artifactId>
  420. <version>3.4.1</version>
  421. </dependency>
  422. <dependency>
  423. <groupId>commons-io</groupId>
  424. <artifactId>commons-io</artifactId>
  425. <version>2.4</version>
  426. </dependency>
  427. <dependency>
  428. <groupId>org.apache.commons</groupId>
  429. <artifactId>commons-pool2</artifactId>
  430. <version>2.3</version>
  431. </dependency>
  432. <dependency>
  433. <groupId>org.apache.jmeter</groupId>
  434. <artifactId>ApacheJMeter_core</artifactId>
  435. <version>2.13</version>
  436. <scope>test</scope>
  437. <exclusions>
  438. <exclusion>
  439. <groupId>org.slf4j</groupId>
  440. <artifactId>slf4j-nop</artifactId>
  441. </exclusion>
  442. <exclusion>
  443. <groupId>commons-math3</groupId>
  444. <artifactId>commons-math3</artifactId>
  445. </exclusion>
  446. <exclusion>
  447. <groupId>commons-pool2</groupId>
  448. <artifactId>commons-pool2</artifactId>
  449. </exclusion>
  450. </exclusions>
  451. </dependency>
  452. <dependency>
  453. <groupId>org.apache.jmeter</groupId>
  454. <artifactId>ApacheJMeter_http</artifactId>
  455. <version>2.13</version>
  456. <scope>test</scope>
  457. <exclusions>
  458. <exclusion>
  459. <groupId>org.slf4j</groupId>
  460. <artifactId>slf4j-nop</artifactId>
  461. </exclusion>
  462. <exclusion>
  463. <groupId>commons-math3</groupId>
  464. <artifactId>commons-math3</artifactId>
  465. </exclusion>
  466. <exclusion>
  467. <groupId>commons-pool2</groupId>
  468. <artifactId>commons-pool2</artifactId>
  469. </exclusion>
  470. </exclusions>
  471. </dependency>
  472. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  473. <dependency>
  474. <groupId>org.apache.hadoop</groupId>
  475. <artifactId>hadoop-yarn-server-common</artifactId>
  476. <version>${hadoop.version}</version>
  477. </dependency>
  478. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  479. <dependency>
  480. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  481. <artifactId>jersey-test-framework-grizzly2</artifactId>
  482. <scope>test</scope>
  483. <version>1.11</version>
  484. </dependency>
  485. <dependency>
  486. <groupId>org.codehaus.jackson</groupId>
  487. <artifactId>jackson-core-asl</artifactId>
  488. <version>1.9.9</version>
  489. </dependency>
  490. <dependency>
  491. <groupId>org.slf4j</groupId>
  492. <artifactId>slf4j-api</artifactId>
  493. <version>1.7.2</version>
  494. </dependency>
  495. <dependency>
  496. <groupId>org.slf4j</groupId>
  497. <artifactId>slf4j-log4j12</artifactId>
  498. <version>1.7.2</version>
  499. </dependency>
  500. <dependency>
  501. <groupId>org.codehaus.jackson</groupId>
  502. <artifactId>jackson-mapper-asl</artifactId>
  503. <version>1.9.13</version>
  504. </dependency>
  505. <dependency>
  506. <groupId>commons-collections</groupId>
  507. <artifactId>commons-collections</artifactId>
  508. <version>3.2.1</version>
  509. </dependency>
  510. <dependency>
  511. <groupId>org.fusesource.leveldbjni</groupId>
  512. <artifactId>leveldbjni-all</artifactId>
  513. <version>1.8</version>
  514. </dependency>
  515. <dependency>
  516. <groupId>org.assertj</groupId>
  517. <artifactId>assertj-core</artifactId>
  518. <version>1.7.0</version>
  519. <scope>test</scope>
  520. </dependency>
  521. <dependency>
  522. <groupId>org.easymock</groupId>
  523. <artifactId>easymock</artifactId>
  524. <version>3.2</version>
  525. <scope>test</scope>
  526. </dependency>
  527. <!-- for unit tests only -->
  528. <dependency>
  529. <groupId>org.apache.phoenix</groupId>
  530. <artifactId>phoenix-core</artifactId>
  531. <type>test-jar</type>
  532. <version>${phoenix.version}</version>
  533. <scope>test</scope>
  534. </dependency>
  535. <dependency>
  536. <groupId>org.apache.hbase</groupId>
  537. <artifactId>hbase-it</artifactId>
  538. <version>${hbase.version}</version>
  539. <scope>test</scope>
  540. <classifier>tests</classifier>
  541. </dependency>
  542. <dependency>
  543. <groupId>org.apache.hbase</groupId>
  544. <artifactId>hbase-testing-util</artifactId>
  545. <version>${hbase.version}</version>
  546. <scope>test</scope>
  547. <optional>true</optional>
  548. <exclusions>
  549. <exclusion>
  550. <groupId>org.jruby</groupId>
  551. <artifactId>jruby-complete</artifactId>
  552. </exclusion>
  553. </exclusions>
  554. </dependency>
  555. <dependency>
  556. <groupId>org.powermock</groupId>
  557. <artifactId>powermock-module-junit4</artifactId>
  558. <scope>test</scope>
  559. </dependency>
  560. <dependency>
  561. <groupId>org.powermock</groupId>
  562. <artifactId>powermock-api-mockito</artifactId>
  563. <scope>test</scope>
  564. </dependency>
  565. <dependency>
  566. <groupId>org.powermock</groupId>
  567. <artifactId>powermock-api-easymock</artifactId>
  568. <scope>test</scope>
  569. </dependency>
  570. </dependencies>
  571. <profiles>
  572. <profile>
  573. <id>linux</id>
  574. <activation>
  575. <os>
  576. <family>unix</family>
  577. </os>
  578. </activation>
  579. <build>
  580. <plugins>
  581. <plugin>
  582. <groupId>org.apache.maven.plugins</groupId>
  583. <artifactId>maven-antrun-plugin</artifactId>
  584. <version>1.7</version>
  585. <executions>
  586. <execution>
  587. <phase>generate-resources</phase>
  588. <goals>
  589. <goal>run</goal>
  590. </goals>
  591. <configuration>
  592. <target name="Download HBase">
  593. <mkdir dir="${project.build.directory}/embedded" />
  594. <get
  595. src="${hbase.tar}"
  596. dest="${project.build.directory}/embedded/hbase.tar.gz"
  597. usetimestamp="true"
  598. />
  599. <untar
  600. src="${project.build.directory}/embedded/hbase.tar.gz"
  601. dest="${project.build.directory}/embedded"
  602. compression="gzip"
  603. />
  604. </target>
  605. </configuration>
  606. </execution>
  607. </executions>
  608. </plugin>
  609. </plugins>
  610. </build>
  611. </profile>
  612. <profile>
  613. <id>windows</id>
  614. <activation>
  615. <os>
  616. <family>win</family>
  617. </os>
  618. </activation>
  619. <build>
  620. <plugins>
  621. <plugin>
  622. <groupId>org.apache.maven.plugins</groupId>
  623. <artifactId>maven-antrun-plugin</artifactId>
  624. <version>1.7</version>
  625. <executions>
  626. <execution>
  627. <phase>generate-resources</phase>
  628. <goals>
  629. <goal>run</goal>
  630. </goals>
  631. <configuration>
  632. <target name="Download HBase">
  633. <mkdir dir="${project.build.directory}/embedded" />
  634. <get
  635. src="${hbase.winpkg.zip}"
  636. dest="${project.build.directory}/embedded/hbase.zip"
  637. usetimestamp="true"
  638. />
  639. <unzip
  640. src="${project.build.directory}/embedded/hbase.zip"
  641. dest="${project.build.directory}/embedded/hbase.temp"
  642. />
  643. <unzip
  644. src="${project.build.directory}/embedded/hbase.temp/resources/${hbase.winpkg.folder}.zip"
  645. dest="${project.build.directory}/embedded"
  646. />
  647. <copy
  648. file="${project.build.directory}/embedded/hbase.temp/resources/servicehost.exe"
  649. tofile="${project.build.directory}/embedded/${hbase.winpkg.folder}/bin/ams_hbase_master.exe"
  650. />
  651. </target>
  652. </configuration>
  653. </execution>
  654. </executions>
  655. </plugin>
  656. </plugins>
  657. </build>
  658. </profile>
  659. <profile>
  660. <id>sim</id>
  661. <build>
  662. <plugins>
  663. <plugin>
  664. <artifactId>maven-assembly-plugin</artifactId>
  665. <configuration>
  666. <descriptors>
  667. <descriptor>src/main/assemblies/simulator.xml</descriptor>
  668. </descriptors>
  669. <tarLongFileMode>gnu</tarLongFileMode>
  670. </configuration>
  671. <executions>
  672. <execution>
  673. <id>build-tarball</id>
  674. <phase>package</phase>
  675. <goals>
  676. <goal>single</goal>
  677. </goals>
  678. </execution>
  679. </executions>
  680. </plugin>
  681. <plugin>
  682. <artifactId>maven-jar-plugin</artifactId>
  683. <version>2.3.1</version>
  684. <!-- The configuration of the plugin -->
  685. <configuration>
  686. <!-- Configuration of the archiver -->
  687. <finalName>${project.artifactId}-simulator-${project.version}</finalName>
  688. <archive>
  689. <!-- Manifest specific configuration -->
  690. <manifest>
  691. <!-- Classpath is added to the manifest of the created jar file. -->
  692. <addClasspath>true</addClasspath>
  693. <!--
  694. Configures the classpath prefix. This configuration option is
  695. used to specify that all needed libraries are found under lib/
  696. directory.
  697. -->
  698. <classpathPrefix></classpathPrefix>
  699. <!-- Specifies the main class of the application -->
  700. <mainClass>
  701. org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.loadsimulator.MetricsLoadSimulator
  702. </mainClass>
  703. </manifest>
  704. </archive>
  705. </configuration>
  706. </plugin>
  707. </plugins>
  708. </build>
  709. </profile>
  710. </profiles>
  711. </project>