pom.xml 25 KB

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