pom.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <?xml version="1.0"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <parent>
  18. <groupId>org.apache.ambari</groupId>
  19. <artifactId>ambari-project</artifactId>
  20. <version>1.3.0-SNAPSHOT</version>
  21. <relativePath>../ambari-project</relativePath>
  22. </parent>
  23. <modelVersion>4.0.0</modelVersion>
  24. <groupId>org.apache.ambari</groupId>
  25. <artifactId>ambari-agent</artifactId>
  26. <packaging>pom</packaging>
  27. <version>1.3.0-SNAPSHOT</version>
  28. <name>Ambari Agent</name>
  29. <description>Ambari Agent</description>
  30. <properties>
  31. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  32. <final.name>${project.artifactId}-${project.version}</final.name>
  33. <package.release>1</package.release>
  34. <package.prefix>/usr</package.prefix>
  35. <package.log.dir>/var/log/ambari-agent</package.log.dir>
  36. <package.pid.dir>/var/run/ambari-agent</package.pid.dir>
  37. <skipTests>false</skipTests>
  38. <agent.install.dir>/usr/lib/python2.6/site-packages/ambari_agent</agent.install.dir>
  39. <ambari_commons.install.dir>/usr/lib/ambari-agent/lib/ambari_commons</ambari_commons.install.dir>
  40. <resource_management.install.dir>/usr/lib/ambari-agent/lib/resource_management</resource_management.install.dir>
  41. <jinja.install.dir>/usr/lib/python2.6/site-packages/jinja2</jinja.install.dir>
  42. <lib.dir>/usr/lib/ambari-agent/lib</lib.dir>
  43. <python.ver>python &gt;= 2.6</python.ver>
  44. <deb.python.ver>python (&gt;= 2.6)</deb.python.ver>
  45. <deb.architecture>amd64</deb.architecture>
  46. <deb.dependency.list>openssl, zlibc, ${deb.python.ver}</deb.dependency.list>
  47. <ambari.server.module>../ambari-server</ambari.server.module>
  48. <target.cache.dir>${project.build.directory}/cache/</target.cache.dir>
  49. <resource.keeper.script>${ambari.server.module}/src/main/python/ambari_server/resourceFilesKeeper.py</resource.keeper.script>
  50. <init.d.dir>/etc/rc.d/init.d</init.d.dir>
  51. </properties>
  52. <build>
  53. <plugins>
  54. <plugin>
  55. <groupId>org.codehaus.mojo</groupId>
  56. <artifactId>build-helper-maven-plugin</artifactId>
  57. <version>1.8</version>
  58. <executions>
  59. <execution>
  60. <id>parse-version</id>
  61. <phase>validate</phase>
  62. <goals>
  63. <goal>parse-version</goal>
  64. </goals>
  65. </execution>
  66. <execution>
  67. <id>regex-property</id>
  68. <goals>
  69. <goal>regex-property</goal>
  70. </goals>
  71. <configuration>
  72. <name>ambariVersion</name>
  73. <value>${project.version}</value>
  74. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  75. <replacement>$1.$2.$3</replacement>
  76. <failIfNoMatch>false</failIfNoMatch>
  77. </configuration>
  78. </execution>
  79. </executions>
  80. </plugin>
  81. <plugin>
  82. <artifactId>maven-compiler-plugin</artifactId>
  83. <version>3.0</version>
  84. </plugin>
  85. <plugin>
  86. <artifactId>maven-assembly-plugin</artifactId>
  87. <configuration>
  88. <tarLongFileMode>gnu</tarLongFileMode>
  89. <descriptors>
  90. <descriptor>src/packages/tarball/all.xml</descriptor>
  91. </descriptors>
  92. </configuration>
  93. <executions>
  94. <execution>
  95. <id>build-tarball</id>
  96. <phase>prepare-package</phase>
  97. <goals>
  98. <goal>single</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.codehaus.mojo</groupId>
  105. <artifactId>exec-maven-plugin</artifactId>
  106. <version>1.2</version>
  107. <executions>
  108. <execution>
  109. <configuration>
  110. <executable>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable>
  111. <workingDirectory>src/test/python</workingDirectory>
  112. <arguments>
  113. <argument>unitTests.py</argument>
  114. </arguments>
  115. <environmentVariables>
  116. <PYTHONPATH>${project.basedir}/../ambari-common/src/main/python/jinja2:${project.basedir}/../ambari-common/src/main/python/ambari_commons:${project.basedir}/../ambari-common/src/main/python/resource_management:${project.basedir}/../ambari-common/src/test/python:${project.basedir}/../ambari-common/src/main/python:${project.basedir}/src/main/python/ambari_agent:${project.basedir}/src/test/python/ambari_agent:${project.basedir}/src/test/python/resource_management:${project.basedir}/src/main/python:${project.basedir}/../ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/files:${project.basedir}/../ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HDFS/package/files:$PYTHONPATH</PYTHONPATH>
  117. </environmentVariables>
  118. <skip>${skipTests}</skip>
  119. </configuration>
  120. <id>python-test</id>
  121. <phase>test</phase>
  122. <goals>
  123. <goal>exec</goal>
  124. </goals>
  125. </execution>
  126. <execution>
  127. <!-- TODO: Looks like section is unused, maybe remove? -->
  128. <configuration>
  129. <executable>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable>
  130. <workingDirectory>target/ambari-agent-${project.version}</workingDirectory>
  131. <arguments>
  132. <argument>${project.basedir}/src/main/python/setup.py</argument>
  133. <argument>clean</argument>
  134. <argument>bdist_dumb</argument>
  135. </arguments>
  136. <environmentVariables>
  137. <PYTHONPATH>target/ambari-agent-${project.version}:$PYTHONPATH</PYTHONPATH>
  138. </environmentVariables>
  139. </configuration>
  140. <id>python-package</id>
  141. <phase>package</phase>
  142. <goals>
  143. <goal>exec</goal>
  144. </goals>
  145. </execution>
  146. <execution>
  147. <configuration>
  148. <executable>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable>
  149. <workingDirectory>${basedir}</workingDirectory>
  150. <arguments>
  151. <argument>${resource.keeper.script}</argument>
  152. <argument>${target.cache.dir}</argument>
  153. </arguments>
  154. <environmentVariables>
  155. <PYTHONPATH>target/ambari-agent-${project.version}:$PYTHONPATH</PYTHONPATH>
  156. </environmentVariables>
  157. </configuration>
  158. <id>generate-hash-files</id>
  159. <phase>package</phase>
  160. <goals>
  161. <goal>exec</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.codehaus.mojo</groupId>
  168. <artifactId>rpm-maven-plugin</artifactId>
  169. <version>2.0.1</version>
  170. <executions>
  171. <execution>
  172. <!-- unbinds rpm creation from maven lifecycle -->
  173. <phase>none</phase>
  174. <goals>
  175. <goal>rpm</goal>
  176. </goals>
  177. </execution>
  178. </executions>
  179. <configuration>
  180. <copyright>2012, Apache Software Foundation</copyright>
  181. <group>Development</group>
  182. <description>Maven Recipe: RPM Package.</description>
  183. <requires>
  184. <require>openssl</require>
  185. <require>zlib</require>
  186. <require>${python.ver}</require>
  187. </requires>
  188. <postinstallScriptlet>
  189. <scriptFile>src/main/package/rpm/postinstall.sh</scriptFile>
  190. <fileEncoding>utf-8</fileEncoding>
  191. </postinstallScriptlet>
  192. <preinstallScriptlet>
  193. <scriptFile>src/main/package/rpm/preinstall.sh</scriptFile>
  194. <fileEncoding>utf-8</fileEncoding>
  195. </preinstallScriptlet>
  196. <preremoveScriptlet>
  197. <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
  198. <fileEncoding>utf-8</fileEncoding>
  199. </preremoveScriptlet>
  200. <posttransScriptlet>
  201. <scriptFile>src/main/package/rpm/posttrans_agent.sh</scriptFile>
  202. <fileEncoding>utf-8</fileEncoding>
  203. </posttransScriptlet>
  204. <needarch>x86_64</needarch>
  205. <autoRequires>false</autoRequires>
  206. <mappings>
  207. <mapping>
  208. <directory>${agent.install.dir}</directory>
  209. <username>root</username>
  210. <groupname>root</groupname>
  211. <sources>
  212. <source>
  213. <location>${project.build.directory}/${project.artifactId}-${project.version}/ambari_agent</location>
  214. </source>
  215. </sources>
  216. </mapping>
  217. <mapping>
  218. <directory>/var/lib/ambari-agent/</directory>
  219. <filemode>755</filemode>
  220. <username>root</username>
  221. <groupname>root</groupname>
  222. <directoryIncluded>false</directoryIncluded>
  223. <sources>
  224. <source>
  225. <location>../ambari-common/src/main/unix/ambari-python-wrap</location>
  226. </source>
  227. </sources>
  228. </mapping>
  229. <mapping>
  230. <directory>${ambari_commons.install.dir}</directory>
  231. <username>root</username>
  232. <groupname>root</groupname>
  233. <sources>
  234. <source>
  235. <location>${project.basedir}/../ambari-common/src/main/python/ambari_commons</location>
  236. </source>
  237. </sources>
  238. </mapping>
  239. <mapping>
  240. <directory>${resource_management.install.dir}</directory>
  241. <username>root</username>
  242. <groupname>root</groupname>
  243. <sources>
  244. <source>
  245. <location>${project.basedir}/../ambari-common/src/main/python/resource_management</location>
  246. </source>
  247. </sources>
  248. </mapping>
  249. <mapping>
  250. <directory>${jinja.install.dir}</directory>
  251. <username>root</username>
  252. <groupname>root</groupname>
  253. <sources>
  254. <source>
  255. <location>${project.basedir}/../ambari-common/src/main/python/jinja2/jinja2</location>
  256. <excludes>
  257. <exclude>${project.basedir}/../ambari-common/src/main/python/jinja2/jinja2/testsuite</exclude>
  258. </excludes>
  259. </source>
  260. </sources>
  261. </mapping>
  262. <mapping>
  263. <directory>${lib.dir}/examples</directory>
  264. <filemode>755</filemode>
  265. <username>root</username>
  266. <groupname>root</groupname>
  267. <sources>
  268. <source>
  269. <location>src/examples</location>
  270. </source>
  271. </sources>
  272. </mapping>
  273. <mapping>
  274. <directory>/etc/ambari-agent/conf</directory>
  275. <filemode>755</filemode>
  276. <username>root</username>
  277. <groupname>root</groupname>
  278. <sources>
  279. <source>
  280. <location>conf/unix/ambari-agent.ini</location>
  281. </source>
  282. </sources>
  283. </mapping>
  284. <mapping>
  285. <directory>/usr/sbin</directory>
  286. <filemode>755</filemode>
  287. <username>root</username>
  288. <groupname>root</groupname>
  289. <directoryIncluded>false</directoryIncluded>
  290. <sources>
  291. <source>
  292. <location>conf/unix/ambari-agent</location>
  293. <filter>true</filter>
  294. </source>
  295. </sources>
  296. </mapping>
  297. <mapping>
  298. <directory>/var/lib/ambari-agent</directory>
  299. <filemode>700</filemode>
  300. <username>root</username>
  301. <groupname>root</groupname>
  302. <sources>
  303. <source>
  304. <location>conf/unix/ambari-env.sh</location>
  305. </source>
  306. </sources>
  307. </mapping>
  308. <mapping>
  309. <directory>/var/lib/ambari-agent</directory>
  310. <filemode>700</filemode>
  311. <username>root</username>
  312. <groupname>root</groupname>
  313. <sources>
  314. <source>
  315. <location>conf/unix/install-helper.sh</location>
  316. </source>
  317. </sources>
  318. </mapping>
  319. <mapping>
  320. <directory>${package.pid.dir}</directory>
  321. <filemode>755</filemode>
  322. <username>root</username>
  323. <groupname>root</groupname>
  324. </mapping>
  325. <mapping>
  326. <directory>/var/lib/${project.artifactId}/data</directory>
  327. <filemode>755</filemode>
  328. <username>root</username>
  329. <groupname>root</groupname>
  330. </mapping>
  331. <mapping>
  332. <directory>/var/lib/${project.artifactId}/data/tmp</directory>
  333. <filemode>755</filemode>
  334. <username>root</username>
  335. <groupname>root</groupname>
  336. </mapping>
  337. <mapping>
  338. <directory>/var/lib/${project.artifactId}/keys</directory>
  339. <filemode>755</filemode>
  340. <username>root</username>
  341. <groupname>root</groupname>
  342. </mapping>
  343. <mapping>
  344. <directory>${package.log.dir}</directory>
  345. <filemode>755</filemode>
  346. <username>root</username>
  347. <groupname>root</groupname>
  348. </mapping>
  349. <mapping>
  350. <directory>${init.d.dir}</directory>
  351. <filemode>755</filemode>
  352. <username>root</username>
  353. <groupname>root</groupname>
  354. <sources>
  355. <source>
  356. <location>etc/init.d/ambari-agent</location>
  357. </source>
  358. </sources>
  359. </mapping>
  360. <mapping>
  361. <directory>/var/lib/${project.artifactId}/data</directory>
  362. <filemode>755</filemode>
  363. <username>root</username>
  364. <groupname>root</groupname>
  365. <sources>
  366. <source>
  367. <location>../version</location>
  368. <filter>true</filter>
  369. </source>
  370. </sources>
  371. </mapping>
  372. <mapping>
  373. <directory>/var/lib/ambari-agent/cache</directory>
  374. <filemode>755</filemode>
  375. <username>root</username>
  376. <groupname>root</groupname>
  377. <sources>
  378. <source>
  379. <location>${target.cache.dir}</location>
  380. </source>
  381. </sources>
  382. </mapping>
  383. </mappings>
  384. </configuration>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.vafer</groupId>
  388. <artifactId>jdeb</artifactId>
  389. <version>1.0.1</version>
  390. <executions>
  391. <execution>
  392. <phase>none</phase>
  393. <goals>
  394. <goal>jdeb</goal>
  395. </goals>
  396. </execution>
  397. </executions>
  398. <configuration>
  399. <controlDir>${basedir}/src/main/package/deb/control</controlDir>
  400. <deb>${basedir}/target/${artifactId}_${package-version}-${package-release}.deb</deb>
  401. <dataSet>
  402. <data>
  403. <src>${project.build.directory}/${project.artifactId}-${project.version}/ambari_agent</src>
  404. <type>directory</type>
  405. <mapper>
  406. <type>perm</type>
  407. <prefix>${agent.install.dir}</prefix>
  408. <user>root</user>
  409. <group>root</group>
  410. </mapper>
  411. </data>
  412. <data>
  413. <src>${project.basedir}/../ambari-common/src/main/python/jinja2/jinja2</src>
  414. <excludes>${project.basedir}/../ambari-common/src/main/python/jinja2/jinja2/testsuite</excludes>
  415. <type>directory</type>
  416. <mapper>
  417. <type>perm</type>
  418. <prefix>${jinja.install.dir}</prefix>
  419. <user>root</user>
  420. <group>root</group>
  421. </mapper>
  422. </data>
  423. <data>
  424. <src>src/examples</src>
  425. <type>directory</type>
  426. <mapper>
  427. <type>perm</type>
  428. <prefix>${lib.dir}/examples</prefix>
  429. <user>root</user>
  430. <group>root</group>
  431. <filemode>755</filemode>
  432. </mapper>
  433. </data>
  434. <data>
  435. <src>conf/unix/ambari-agent.ini</src>
  436. <type>file</type>
  437. <mapper>
  438. <type>perm</type>
  439. <prefix>/etc/ambari-agent/conf</prefix>
  440. <user>root</user>
  441. <group>root</group>
  442. <filemode>755</filemode>
  443. </mapper>
  444. </data>
  445. <data>
  446. <src>${basedir}/target/src/ambari-agent</src>
  447. <type>file</type>
  448. <mapper>
  449. <type>perm</type>
  450. <prefix>/usr/sbin</prefix>
  451. <user>root</user>
  452. <group>root</group>
  453. <filemode>755</filemode>
  454. </mapper>
  455. </data>
  456. <data>
  457. <src>conf/unix/ambari-env.sh</src>
  458. <type>file</type>
  459. <mapper>
  460. <type>perm</type>
  461. <prefix>/var/lib/ambari-agent</prefix>
  462. <user>root</user>
  463. <group>root</group>
  464. <filemode>700</filemode>
  465. </mapper>
  466. </data>
  467. <data>
  468. <src>conf/unix/install-helper.sh</src>
  469. <type>file</type>
  470. <mapper>
  471. <type>perm</type>
  472. <prefix>/var/lib/ambari-agent</prefix>
  473. <user>root</user>
  474. <group>root</group>
  475. <filemode>700</filemode>
  476. </mapper>
  477. </data>
  478. <data>
  479. <type>template</type>
  480. <paths>
  481. <path>${package.pid.dir}</path>
  482. <path>/var/lib/${project.artifactId}/data</path>
  483. <path>/var/lib/${project.artifactId}/data/tmp</path>
  484. <path>/var/lib/${project.artifactId}/keys</path>
  485. <path>${package.log.dir}</path>
  486. </paths>
  487. <mapper>
  488. <type>perm</type>
  489. <user>root</user>
  490. <group>root</group>
  491. <filemode>755</filemode>
  492. </mapper>
  493. </data>
  494. <data>
  495. <src>etc/init.d/ambari-agent</src>
  496. <type>file</type>
  497. <mapper>
  498. <type>perm</type>
  499. <prefix>/etc/init.d</prefix>
  500. <user>root</user>
  501. <group>root</group>
  502. <filemode>755</filemode>
  503. </mapper>
  504. </data>
  505. <data>
  506. <src>${basedir}/target/src/version</src>
  507. <type>file</type>
  508. <mapper>
  509. <type>perm</type>
  510. <prefix>/var/lib/${project.artifactId}/data</prefix>
  511. <user>root</user>
  512. <group>root</group>
  513. <filemode>755</filemode>
  514. </mapper>
  515. </data>
  516. <data>
  517. <src>../ambari-common/src/main/unix/ambari-python-wrap</src>
  518. <type>file</type>
  519. <mapper>
  520. <type>perm</type>
  521. <prefix>/var/lib/ambari-agent</prefix>
  522. <user>root</user>
  523. <group>root</group>
  524. <filemode>755</filemode>
  525. </mapper>
  526. </data>
  527. <data>
  528. <src>${target.cache.dir}</src>
  529. <type>directory</type>
  530. <mapper>
  531. <type>perm</type>
  532. <prefix>/var/lib/ambari-agent/cache</prefix>
  533. <user>root</user>
  534. <group>root</group>
  535. <filemode>755</filemode>
  536. </mapper>
  537. </data>
  538. <data>
  539. <src>
  540. ${project.basedir}/../ambari-common/src/main/python/ambari_commons
  541. </src>
  542. <type>directory</type>
  543. <mapper>
  544. <type>perm</type>
  545. <prefix>${ambari_commons.install.dir}</prefix>
  546. <filemode>755</filemode>
  547. <user>root</user>
  548. <group>root</group>
  549. </mapper>
  550. </data>
  551. <data>
  552. <src>
  553. ${project.basedir}/../ambari-common/src/main/python/resource_management
  554. </src>
  555. <type>directory</type>
  556. <mapper>
  557. <type>perm</type>
  558. <prefix>${resource_management.install.dir}</prefix>
  559. <filemode>755</filemode>
  560. <user>root</user>
  561. <group>root</group>
  562. </mapper>
  563. </data>
  564. </dataSet>
  565. </configuration>
  566. </plugin>
  567. <plugin>
  568. <artifactId>maven-resources-plugin</artifactId>
  569. <version>2.6</version>
  570. <executions>
  571. <execution>
  572. <id>copy-resources</id>
  573. <phase>prepare-package</phase>
  574. <goals>
  575. <goal>copy-resources</goal>
  576. </goals>
  577. <configuration>
  578. <outputDirectory>${target.cache.dir}</outputDirectory>
  579. <resources>
  580. <resource>
  581. <directory>${ambari.server.module}/src/main/resources</directory>
  582. <includes>
  583. <include>stacks/**/*</include>
  584. <include>custom_actions/**/*</include>
  585. </includes>
  586. <filtering>false</filtering>
  587. </resource>
  588. </resources>
  589. </configuration>
  590. </execution>
  591. <execution>
  592. <id>copy-resources-filter</id>
  593. <phase>prepare-package</phase>
  594. <goals>
  595. <goal>copy-resources</goal>
  596. </goals>
  597. <configuration>
  598. <outputDirectory>${basedir}/target/src</outputDirectory>
  599. <resources>
  600. <resource>
  601. <directory>conf/unix</directory>
  602. <includes>
  603. <include>ambari-agent</include>
  604. </includes>
  605. <filtering>true</filtering>
  606. </resource>
  607. <resource>
  608. <directory>${basedir}/../</directory>
  609. <includes>
  610. <include>version</include>
  611. </includes>
  612. <filtering>true</filtering>
  613. </resource>
  614. </resources>
  615. </configuration>
  616. </execution>
  617. </executions>
  618. </plugin>
  619. <plugin>
  620. <groupId>org.apache.rat</groupId>
  621. <artifactId>apache-rat-plugin</artifactId>
  622. <configuration>
  623. <excludes>
  624. <exclude>src/examples/*</exclude>
  625. <exclude>src/test/python/dummy*.txt</exclude>
  626. <exclude>src/test/python/ambari_agent/dummy_files/*</exclude>
  627. <exclude>src/test/python/ambari_agent/dummy*.txt</exclude>
  628. <exclude>src/main/python/ambari_agent/imports.txt</exclude>
  629. <exclude>**/*.erb</exclude>
  630. <exclude>**/*.json</exclude>
  631. <exclude>**/*.pydevproject</exclude>
  632. </excludes>
  633. </configuration>
  634. <executions>
  635. <execution>
  636. <phase>test</phase>
  637. <goals>
  638. <goal>check</goal>
  639. </goals>
  640. </execution>
  641. </executions>
  642. </plugin>
  643. <plugin>
  644. <groupId>org.codehaus.mojo</groupId>
  645. <artifactId>buildnumber-maven-plugin</artifactId>
  646. <version>${buildnumber-maven-plugin-version}</version>
  647. <configuration>
  648. <urlScm>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-ambari.git</urlScm>
  649. </configuration>
  650. <executions>
  651. <execution>
  652. <phase>validate</phase>
  653. <goals>
  654. <goal>create</goal>
  655. </goals>
  656. </execution>
  657. </executions>
  658. </plugin>
  659. </plugins>
  660. <extensions>
  661. <extension>
  662. <groupId>org.apache.maven.wagon</groupId>
  663. <artifactId>wagon-ssh-external</artifactId>
  664. </extension>
  665. </extensions>
  666. </build>
  667. <profiles>
  668. <profile>
  669. <id>suse11</id>
  670. <properties>
  671. <init.d.dir>/etc/init.d</init.d.dir>
  672. </properties>
  673. </profile>
  674. </profiles>
  675. </project>