pom.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache</groupId>
  20. <artifactId>apache</artifactId>
  21. <version>21</version>
  22. </parent>
  23. <groupId>org.apache.ambari</groupId>
  24. <artifactId>ambari</artifactId>
  25. <packaging>pom</packaging>
  26. <name>Ambari Main</name>
  27. <version>${revision}</version>
  28. <description>Ambari</description>
  29. <url>https://ambari.apache.org/</url>
  30. <scm>
  31. <url>https://github.com/apache/ambari</url>
  32. <connection>scm:git:https://gitbox.apache.org/repos/asf/ambari.git</connection>
  33. </scm>
  34. <licenses>
  35. <license>
  36. <name>The Apache Software License, Version 2.0</name>
  37. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  38. <distribution>repo</distribution>
  39. </license>
  40. </licenses>
  41. <mailingLists>
  42. <mailingList>
  43. <name>Dev</name>
  44. <subscribe>dev-subscribe@ambari.apache.org</subscribe>
  45. <unsubscribe>dev-unsubscribe@ambari.apache.org</unsubscribe>
  46. <post>dev@ambari.apache.org</post>
  47. <archive>http://mail-archives.apache.org/mod_mbox/ambari-dev/</archive>
  48. </mailingList>
  49. <mailingList>
  50. <name>Users</name>
  51. <subscribe>users-subscribe@ambari.apache.org</subscribe>
  52. <unsubscribe>users-unsubscribe@ambari.apache.org</unsubscribe>
  53. <post>users@ambari.apache.org</post>
  54. <archive>http://mail-archives.apache.org/mod_mbox/ambari-users</archive>
  55. </mailingList>
  56. <mailingList>
  57. <name>Commits</name>
  58. <subscribe>commits-subscribe@ambari.apache.org</subscribe>
  59. <unsubscribe>commits-unsubscribe@ambari.apache.org</unsubscribe>
  60. <post>commits@ambari.apache.org</post>
  61. <archive>http://mail-archives.apache.org/mod_mbox/ambari-commits</archive>
  62. </mailingList>
  63. <mailingList>
  64. <name>Issues</name>
  65. <subscribe>issues-subscribe@ambari.apache.org</subscribe>
  66. <unsubscribe>issues-unsubscribe@ambari.apache.org</unsubscribe>
  67. <post>issues@ambari.apache.org</post>
  68. <archive>http://mail-archives.apache.org/mod_mbox/ambari-issues</archive>
  69. </mailingList>
  70. </mailingLists>
  71. <organization>
  72. <name>Apache Software Foundation</name>
  73. <url>https://www.apache.org</url>
  74. </organization>
  75. <issueManagement>
  76. <system>jira</system>
  77. <url>https://issues.apache.org/jira/browse/AMBARI</url>
  78. </issueManagement>
  79. <properties>
  80. <revision>3.0.0.0-SNAPSHOT</revision>
  81. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  82. <clover.license>${user.home}/clover.license</clover.license>
  83. <jdk.version>1.8</jdk.version>
  84. <buildnumber-maven-plugin-version>1.2</buildnumber-maven-plugin-version>
  85. <deb.publisher>Hortonworks</deb.publisher>
  86. <deb.section>universe/admin</deb.section>
  87. <deb.architecture>i386 amd64</deb.architecture>
  88. <deb.priority>extra</deb.priority>
  89. <stack.distribution>BIGTOP</stack.distribution>
  90. <ambari.dir>${project.basedir}</ambari.dir>
  91. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  92. <distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
  93. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  94. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  95. <assemblyPhase>package</assemblyPhase> <!-- use -DassemblyPhase=none to skip building tarball, useful when you want purely compile jar -->
  96. <eclipselink.version>2.6.2</eclipselink.version>
  97. </properties>
  98. <pluginRepositories>
  99. <pluginRepository>
  100. <id>maven2-repository.dev.java.net</id>
  101. <name>Java.net Repository for Maven</name>
  102. <url>https://download.java.net/maven/2/</url>
  103. <layout>default</layout>
  104. </pluginRepository>
  105. <pluginRepository>
  106. <id>maven2-glassfish-repository.dev.java.net</id>
  107. <name>Java.net Repository for Maven</name>
  108. <url>https://download.java.net/maven/glassfish/</url>
  109. </pluginRepository>
  110. <pluginRepository>
  111. <id>maven2-repository.atlassian</id>
  112. <name>Atlassian Maven Repository</name>
  113. <url>https://maven.atlassian.com/repository/public</url>
  114. <layout>default</layout>
  115. </pluginRepository>
  116. <pluginRepository>
  117. <id>${distMgmtSnapshotsId}</id>
  118. <name>${distMgmtSnapshotsName}</name>
  119. <url>${distMgmtSnapshotsUrl}</url>
  120. <layout>default</layout>
  121. </pluginRepository>
  122. </pluginRepositories>
  123. <repositories>
  124. <repository>
  125. <id>oss.sonatype.org</id>
  126. <name>OSS Sonatype Staging</name>
  127. <url>https://oss.sonatype.org/content/groups/staging</url>
  128. </repository>
  129. <repository>
  130. <id>spring-milestones</id>
  131. <name>Spring Milestones</name>
  132. <url>https://repo.spring.io/milestone</url>
  133. <snapshots>
  134. <enabled>false</enabled>
  135. </snapshots>
  136. </repository>
  137. <repository>
  138. <id>ASF Staging</id>
  139. <url>https://repository.apache.org/content/groups/staging/</url>
  140. </repository>
  141. <repository>
  142. <id>ASF Snapshots</id>
  143. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  144. <snapshots>
  145. <enabled>true</enabled>
  146. </snapshots>
  147. <releases>
  148. <enabled>false</enabled>
  149. </releases>
  150. </repository>
  151. </repositories>
  152. <build>
  153. <pluginManagement>
  154. <plugins>
  155. <plugin>
  156. <groupId>org.apache.rat</groupId>
  157. <artifactId>apache-rat-plugin</artifactId>
  158. <version>0.12</version>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-surefire-plugin</artifactId>
  163. <version>2.20</version>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.codehaus.mojo</groupId>
  167. <artifactId>rpm-maven-plugin</artifactId>
  168. <version>2.0.1</version>
  169. </plugin>
  170. <plugin>
  171. <groupId>org.vafer</groupId>
  172. <artifactId>jdeb</artifactId>
  173. <version>1.8</version>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-clean-plugin</artifactId>
  178. <version>2.5</version>
  179. </plugin>
  180. <plugin>
  181. <artifactId>maven-assembly-plugin</artifactId>
  182. <version>2.2-beta-5</version>
  183. </plugin>
  184. </plugins>
  185. </pluginManagement>
  186. <plugins>
  187. <plugin>
  188. <groupId>org.codehaus.mojo</groupId>
  189. <artifactId>build-helper-maven-plugin</artifactId>
  190. <version>1.8</version>
  191. <executions>
  192. <execution>
  193. <id>parse-package-version</id>
  194. <goals>
  195. <goal>regex-property</goal>
  196. </goals>
  197. <configuration>
  198. <name>package-version</name>
  199. <value>${project.version}</value>
  200. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-).*)?</regex>
  201. <replacement>$1.$2.$3.$4</replacement>
  202. <failIfNoMatch>true</failIfNoMatch>
  203. </configuration>
  204. </execution>
  205. <execution>
  206. <id>parse-package-release</id>
  207. <goals>
  208. <goal>regex-property</goal>
  209. </goals>
  210. <configuration>
  211. <name>package-release</name>
  212. <value>${project.version}</value>
  213. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-)(([0-9]+)|(SNAPSHOT)|(techwin)).*)?</regex>
  214. <replacement>$7</replacement>
  215. <failIfNoMatch>true</failIfNoMatch>
  216. </configuration>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-compiler-plugin</artifactId>
  223. <version>3.2</version>
  224. <configuration>
  225. <source>${jdk.version}</source>
  226. <target>${jdk.version}</target>
  227. </configuration>
  228. </plugin>
  229. <plugin>
  230. <artifactId>maven-assembly-plugin</artifactId>
  231. <configuration>
  232. <descriptors>
  233. <descriptor>${ambari.dir}/ambari-project/src/main/assemblies/empty.xml</descriptor>
  234. </descriptors>
  235. </configuration>
  236. <executions>
  237. <execution>
  238. <id>make-assembly</id>
  239. <phase>package</phase>
  240. <goals>
  241. <goal>single</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.codehaus.mojo</groupId>
  248. <artifactId>rpm-maven-plugin</artifactId>
  249. <version>2.1.4</version>
  250. <executions>
  251. <execution>
  252. <!-- unbinds rpm creation from maven lifecycle -->
  253. <phase>none</phase>
  254. <goals>
  255. <goal>attached-rpm</goal>
  256. </goals>
  257. </execution>
  258. </executions>
  259. <configuration>
  260. <license>2012, Apache Software Foundation</license>
  261. <group>Development</group>
  262. <description>Maven Recipe: RPM Package.</description>
  263. <release>${package-release}</release>
  264. <version>${package-version}</version>
  265. <mappings/>
  266. </configuration>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.rat</groupId>
  270. <artifactId>apache-rat-plugin</artifactId>
  271. <configuration>
  272. <excludes>
  273. <exclude>.github/</exclude>
  274. <exclude>**/repo_*.j2</exclude>
  275. <exclude>**/ambari-log4j.spec</exclude>
  276. <exclude>**/version.txt</exclude>
  277. <exclude>**/release.txt</exclude>
  278. <exclude>**/*.list</exclude>
  279. <exclude>**/hdp_mon_nagios_addons.conf</exclude>
  280. <exclude>**/*.json</exclude>
  281. <exclude>**/*.svg</exclude>
  282. <exclude>derby.log</exclude>
  283. <exclude>CHANGES.txt</exclude>
  284. <exclude>pass.txt</exclude>
  285. <exclude>contrib/ambari-scom/msi/src/GUI_Ambari.sln</exclude>
  286. <exclude>contrib/agent-simulator/docker_image/package_list.txt</exclude>
  287. <exclude>contrib/agent-simulator/config/cluster.txt</exclude>
  288. <exclude>version</exclude>
  289. <!--IDE and GIT files-->
  290. <exclude>**/.idea/</exclude>
  291. <exclude>**/.classpath/</exclude>
  292. <exclude>**/.project/</exclude>
  293. <exclude>**/.settings/</exclude>
  294. <exclude>.git/</exclude>
  295. <exclude>.pydevproject</exclude>
  296. <exclude>**/.gitattributes</exclude>
  297. <exclude>**/.gitkeep</exclude>
  298. <exclude>**/.jshintrc</exclude>
  299. <exclude>**/.editorconfig</exclude>
  300. <!--gitignore content-->
  301. <exclude>.DS_Store</exclude>
  302. <exclude>*.pyc</exclude>
  303. <exclude>*.py~</exclude>
  304. <exclude>.hg</exclude>
  305. <exclude>.hgignore</exclude>
  306. <exclude>.hgtags</exclude>
  307. <exclude>**/.bowerrc</exclude>
  308. <exclude>**/robots.txt</exclude>
  309. <exclude>**/rat.txt</exclude>
  310. <!--Python Mock library (BSD license)-->
  311. <exclude>ambari-common/src/test/python/mock/**</exclude>
  312. <!--Coilmq Mock library (Apache license)-->
  313. <exclude>ambari-common/src/test/python/coilmq/**</exclude>
  314. <!--Jinja2 library (BSD license)-->
  315. <exclude>ambari-common/src/main/python/ambari_jinja2/**</exclude>
  316. <exclude>ambari-common/src/main/python/jinja2/**</exclude>
  317. <exclude>ambari-common/src/main/python/ambari_pyaes/**</exclude>
  318. <exclude>ambari-common/src/main/python/ambari_pbkdf2/**</exclude>
  319. <exclude>**/.metadata_never_index</exclude>
  320. <!--Simplejson library (MIT license)-->
  321. <exclude>ambari-common/src/main/python/ambari_simplejson/**</exclude>
  322. <!--Subprocess32 library (PSF license)-->
  323. <exclude>ambari-common/src/main/python/ambari_commons/subprocess32.py</exclude>
  324. <exclude>ambari-common/src/main/python/ambari_commons/_posixsubprocess.so</exclude>
  325. <!--Stomp library (Apache license)-->
  326. <exclude>ambari-common/src/main/python/ambari_stomp/**</exclude>
  327. <!--ws4py library (BSD 3-Clause)-->
  328. <exclude>ambari-common/src/main/python/ambari_ws4py/**</exclude>
  329. <exclude>ambari-web/node_modules/**</exclude>
  330. <!--Contributions-->
  331. <exclude>contrib/**/bower_components/**</exclude>
  332. <exclude>contrib/**/dist/**</exclude>
  333. <exclude>contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/files/fast-hdfs-resource.jar</exclude>
  334. <exclude>contrib/ambari-scom/management-pack/Hadoop_MP/**</exclude>
  335. <exclude>contrib/addons/test/dataServices/jmx/data/cluster_configuration.json.nohbase</exclude>
  336. <exclude>contrib/ambari-scom/msi/src/GUI_Ambari.sln</exclude>
  337. <exclude>contrib/ambari-scom/ambari-scom-server/pass.txt</exclude>
  338. <exclude>contrib/ambari-scom/*/rat.txt</exclude>
  339. <exclude>contrib/views/capacity-scheduler/src/main/resources/ui/node_modules/**</exclude>
  340. <exclude>contrib/views/commons/src/main/resources/ui/*/.bowerrc</exclude>
  341. <exclude>contrib/views/commons/src/main/resources/ui/*/bower_components/**</exclude>
  342. <exclude>contrib/views/commons/src/main/resources/ui/*/node/**</exclude>
  343. <exclude>contrib/views/commons/src/main/resources/ui/*/node_modules/**</exclude>
  344. <exclude>contrib/views/commons/src/main/resources/ui/*/public/**</exclude>
  345. <exclude>contrib/views/commons/src/main/resources/ui/*/vendor/**</exclude>
  346. <exclude>contrib/views/commons/src/main/resources/ui/*/tests/**/public/**</exclude>
  347. <exclude>contrib/views/commons/src/main/resources/ui/*/tests/**/vendor/**</exclude>
  348. <exclude>contrib/views/files/src/main/resources/ui/.bowerrc</exclude>
  349. <exclude>contrib/views/files/src/main/resources/ui/bower_components/**</exclude>
  350. <exclude>contrib/views/files/src/main/resources/ui/node/**</exclude>
  351. <exclude>contrib/views/files/src/main/resources/ui/node_modules/**</exclude>
  352. <exclude>contrib/views/files/src/main/resources/ui/public/**</exclude>
  353. <exclude>contrib/views/files/src/main/resources/ui/vendor/**</exclude>
  354. <exclude>contrib/views/files/src/main/resources/ui/runner.js</exclude>
  355. <exclude>contrib/views/files/src/main/resources/ui/app/assets/stylesheets/**</exclude>
  356. <exclude>contrib/views/files/src/main/resources/ui/app/assets/javascripts/**</exclude>
  357. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/public/**</exclude>
  358. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/node_modules/**</exclude>
  359. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/node/**</exclude>
  360. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/bower_components/**</exclude>
  361. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/vendor/**</exclude>
  362. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/app/assets/static/stylesheets/**</exclude>
  363. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/app/assets/static/javascripts/**</exclude>
  364. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/runner.js</exclude>
  365. <exclude>contrib/addons/package/deb/nagios_addon_deb_control</exclude>
  366. <exclude>contrib/addons/src/addOns/nagios/conf.d/hdp_mon_nagios_addons.conf</exclude>
  367. <exclude>contrib/views/*/.classpath</exclude>
  368. <exclude>contrib/views/*/.project</exclude>
  369. <exclude>contrib/views/*/.settings/**</exclude>
  370. <exclude>contrib/views/capacity-scheduler/src/main/resources/ui/app/**</exclude>
  371. <exclude>contrib/views/capacity-scheduler/src/main/resources/ui/runner.js</exclude>
  372. <exclude>contrib/ambari-scom/ambari-scom-server/pass.txt</exclude>
  373. <exclude>contrib/ambari-scom/*/rat.txt</exclude>
  374. <!--Velocity log -->
  375. <exclude>**/velocity.log*</exclude>
  376. <!-- generated DDL-->
  377. <exclude>**/createDDL.jdbc</exclude>
  378. <exclude>**/yarn.lock</exclude>
  379. <exclude>ambari_python.egg-info/**</exclude>
  380. <exclude>dist/**</exclude>
  381. <exclude>build/**</exclude>
  382. </excludes>
  383. </configuration>
  384. <executions>
  385. <execution>
  386. <phase>test</phase>
  387. <goals>
  388. <goal>check</goal>
  389. </goals>
  390. </execution>
  391. </executions>
  392. </plugin>
  393. <plugin>
  394. <groupId>org.vafer</groupId>
  395. <artifactId>jdeb</artifactId>
  396. <executions>
  397. <execution>
  398. <phase>none</phase>
  399. <goals>
  400. <goal>jdeb</goal>
  401. </goals>
  402. </execution>
  403. </executions>
  404. <configuration>
  405. <skip>true</skip>
  406. <attach>false</attach>
  407. <submodules>true</submodules>
  408. <controlDir>${basedir}/ambari-project/src/main/package/deb/control</controlDir>
  409. </configuration>
  410. </plugin>
  411. <plugin>
  412. <groupId>org.apache.maven.plugins</groupId>
  413. <artifactId>maven-clean-plugin</artifactId>
  414. <configuration>
  415. <filesets>
  416. <fileset>
  417. <directory>${basedir}</directory>
  418. <followSymlinks>false</followSymlinks>
  419. <includes>
  420. <include>**/*.pyc</include>
  421. </includes>
  422. </fileset>
  423. </filesets>
  424. </configuration>
  425. </plugin>
  426. <!--
  427. Required when using the ${revision} placeholder to generate target/.flattened-pom.xml
  428. See: https://maven.apache.org/maven-ci-friendly.html
  429. -->
  430. <plugin>
  431. <groupId>org.codehaus.mojo</groupId>
  432. <artifactId>flatten-maven-plugin</artifactId>
  433. <version>1.0.1</version>
  434. <configuration>
  435. <flattenMode>oss</flattenMode>
  436. <updatePomFile>true</updatePomFile>
  437. <outputDirectory>${project.build.directory}</outputDirectory>
  438. </configuration>
  439. <executions>
  440. <execution>
  441. <id>flatten</id>
  442. <phase>process-resources</phase>
  443. <goals>
  444. <goal>flatten</goal>
  445. </goals>
  446. </execution>
  447. <execution>
  448. <id>flatten.clean</id>
  449. <phase>clean</phase>
  450. <goals>
  451. <goal>clean</goal>
  452. </goals>
  453. </execution>
  454. </executions>
  455. </plugin>
  456. <plugin>
  457. <groupId>org.apache.maven.plugins</groupId>
  458. <artifactId>maven-enforcer-plugin</artifactId>
  459. <version>3.0.0-M2</version>
  460. <executions>
  461. <execution>
  462. <id>enforce-versions</id>
  463. <goals>
  464. <goal>enforce</goal>
  465. </goals>
  466. <configuration>
  467. <rules>
  468. <requireMavenVersion>
  469. <version>3.5.0</version>
  470. </requireMavenVersion>
  471. <requireJavaVersion>
  472. <version>1.8</version>
  473. </requireJavaVersion>
  474. </rules>
  475. </configuration>
  476. </execution>
  477. </executions>
  478. </plugin>
  479. </plugins>
  480. </build>
  481. <profiles>
  482. <profile>
  483. <id>default-views</id>
  484. <activation>
  485. <property>
  486. <name>views</name>
  487. </property>
  488. </activation>
  489. <modules>
  490. <module>ambari-serviceadvisor</module>
  491. <module>ambari-utility</module>
  492. <module>ambari-web</module>
  493. <module>ambari-project</module>
  494. <module>ambari-views</module>
  495. <module>ambari-admin</module>
  496. <module>contrib/views</module>
  497. <module>ambari-server</module>
  498. <module>ambari-server-spi</module>
  499. <module>ambari-funtest</module>
  500. <module>ambari-agent</module>
  501. </modules>
  502. </profile>
  503. <profile>
  504. <id>example-views</id>
  505. <activation>
  506. <property>
  507. <name>exampleViews</name>
  508. </property>
  509. </activation>
  510. <modules>
  511. <module>ambari-serviceadvisor</module>
  512. <module>ambari-utility</module>
  513. <module>ambari-web</module>
  514. <module>ambari-project</module>
  515. <module>ambari-views</module>
  516. <module>ambari-admin</module>
  517. <module>ambari-views/examples</module>
  518. <module>ambari-server</module>
  519. <module>ambari-server-spi</module>
  520. <module>ambari-funtest</module>
  521. <module>ambari-agent</module>
  522. </modules>
  523. </profile>
  524. <profile>
  525. <id>static-web</id>
  526. <modules>
  527. <module>ambari-project</module>
  528. <module>ambari-views</module>
  529. <module>ambari-admin</module>
  530. <module>ambari-server</module>
  531. <module>ambari-server-spi</module>
  532. <module>ambari-funtest</module>
  533. <module>ambari-agent</module>
  534. <module>ambari-serviceadvisor</module>
  535. <module>ambari-utility</module>
  536. </modules>
  537. </profile>
  538. <profile>
  539. <id>linux</id>
  540. <activation>
  541. <os>
  542. <family>unix</family>
  543. </os>
  544. </activation>
  545. <modules>
  546. <module>ambari-web</module>
  547. <module>ambari-project</module>
  548. <module>ambari-views</module>
  549. <module>ambari-admin</module>
  550. <module>ambari-server</module>
  551. <module>ambari-server-spi</module>
  552. <module>ambari-funtest</module>
  553. <module>ambari-agent</module>
  554. <module>ambari-serviceadvisor</module>
  555. <module>ambari-utility</module>
  556. </modules>
  557. </profile>
  558. <profile>
  559. <id>ambari-serviceadvisor</id>
  560. <modules>
  561. <module>ambari-serviceadvisor</module>
  562. </modules>
  563. </profile>
  564. <profile>
  565. <id>windows</id>
  566. <activation>
  567. <os>
  568. <family>win</family>
  569. </os>
  570. </activation>
  571. <modules>
  572. <module>ambari-serviceadvisor</module>
  573. <module>ambari-utility</module>
  574. <module>ambari-web</module>
  575. <module>ambari-project</module>
  576. <module>ambari-views</module>
  577. <module>ambari-admin</module>
  578. <module>ambari-server</module>
  579. <module>ambari-server-spi</module>
  580. <module>ambari-funtest</module>
  581. <module>ambari-agent</module>
  582. </modules>
  583. </profile>
  584. <profile>
  585. <id>clover</id>
  586. <activation>
  587. <activeByDefault>false</activeByDefault>
  588. <property>
  589. <name>clover</name>
  590. </property>
  591. </activation>
  592. <properties>
  593. <maven.clover.licenseLocation>${clover.license}</maven.clover.licenseLocation>
  594. <clover.version>3.1.11</clover.version>
  595. </properties>
  596. <build>
  597. <plugins>
  598. <plugin>
  599. <groupId>com.atlassian.maven.plugins</groupId>
  600. <artifactId>maven-clover2-plugin</artifactId>
  601. <version>${clover.version}</version>
  602. <configuration>
  603. <includesAllSourceRoots>true</includesAllSourceRoots>
  604. <includesTestSourceRoots>true</includesTestSourceRoots>
  605. <targetPercentage>50%</targetPercentage>
  606. <generateHtml>true</generateHtml>
  607. <generateXml>true</generateXml>
  608. <excludes>
  609. <exclude>**/generated/**</exclude>
  610. </excludes>
  611. </configuration>
  612. <executions>
  613. <execution>
  614. <id>clover-setup</id>
  615. <phase>process-sources</phase>
  616. <goals>
  617. <goal>setup</goal>
  618. </goals>
  619. </execution>
  620. <execution>
  621. <id>clover</id>
  622. <phase>test</phase>
  623. <goals>
  624. <goal>clover</goal>
  625. </goals>
  626. </execution>
  627. </executions>
  628. </plugin>
  629. </plugins>
  630. </build>
  631. </profile>
  632. <profile>
  633. <id>sources</id>
  634. <build>
  635. <plugins>
  636. <plugin>
  637. <groupId>org.apache.maven.plugins</groupId>
  638. <artifactId>maven-source-plugin</artifactId>
  639. <executions>
  640. <execution>
  641. <id>attach-sources</id>
  642. <goals>
  643. <goal>jar</goal>
  644. </goals>
  645. </execution>
  646. </executions>
  647. </plugin>
  648. </plugins>
  649. </build>
  650. </profile>
  651. <profile>
  652. <id>javadoc</id>
  653. <build>
  654. <plugins>
  655. <plugin>
  656. <groupId>org.apache.maven.plugins</groupId>
  657. <artifactId>maven-javadoc-plugin</artifactId>
  658. <configuration>
  659. <docfilessubdirs>true</docfilessubdirs>
  660. </configuration>
  661. <executions>
  662. <execution>
  663. <id>attach-javadocs</id>
  664. <goals>
  665. <goal>jar</goal>
  666. </goals>
  667. </execution>
  668. </executions>
  669. </plugin>
  670. </plugins>
  671. </build>
  672. </profile>
  673. <!-- This profile exists to only sign the build artifacts when making a release candidate
  674. instead of a SNAPSHOT. -->
  675. <profile>
  676. <id>sign-artifacts</id>
  677. <activation>
  678. <property>
  679. <name>performRelease</name>
  680. <value>true</value>
  681. </property>
  682. </activation>
  683. <build>
  684. <plugins>
  685. <plugin>
  686. <groupId>org.apache.maven.plugins</groupId>
  687. <artifactId>maven-gpg-plugin</artifactId>
  688. <version>1.6</version>
  689. <executions>
  690. <execution>
  691. <id>sign-artifacts</id>
  692. <phase>verify</phase>
  693. <goals>
  694. <goal>sign</goal>
  695. </goals>
  696. </execution>
  697. </executions>
  698. </plugin>
  699. </plugins>
  700. </build>
  701. </profile>
  702. <!-- Start of profiles for running unit tests.
  703. The category names are Java interfaces in utility/src/main/java/category/
  704. The testcase.groups property contains a csv list of these categories (including the Java package name).
  705. To run a suite of all test cases annotated with a list of categories, run the command
  706. mvn test -P $PROFILE_ID
  707. E.g.,
  708. mvn test -P FastTests
  709. -->
  710. <!-- Tests are are explicitly fast. -->
  711. <profile>
  712. <id>FastTests</id>
  713. <properties>
  714. <testcase.groups>category.FastTest</testcase.groups>
  715. </properties>
  716. </profile>
  717. <!-- Tests are are explicitly slow. -->
  718. <profile>
  719. <id>SlowTests</id>
  720. <properties>
  721. <testcase.groups>category.SlowTest</testcase.groups>
  722. </properties>
  723. </profile>
  724. <!-- Slow tests, or tests that are not annotated. -->
  725. <profile>
  726. <id>NonFastTests</id>
  727. <build>
  728. <plugins>
  729. <plugin>
  730. <groupId>org.apache.maven.plugins</groupId>
  731. <artifactId>maven-surefire-plugin</artifactId>
  732. <configuration>
  733. <excludedGroups>org.apache.ambari.server.FastTest</excludedGroups>
  734. </configuration>
  735. </plugin>
  736. </plugins>
  737. </build>
  738. </profile>
  739. <!-- Unit test Profiles based on features. -->
  740. <profile>
  741. <id>AlertTests</id>
  742. <properties>
  743. <testcase.groups>category.AlertTest</testcase.groups>
  744. </properties>
  745. </profile>
  746. <profile>
  747. <id>AmbariUpgradeTests</id>
  748. <properties>
  749. <testcase.groups>category.AmbariUpgradeTest</testcase.groups>
  750. </properties>
  751. </profile>
  752. <profile>
  753. <id>BlueprintTests</id>
  754. <properties>
  755. <testcase.groups>category.BlueprintTest</testcase.groups>
  756. </properties>
  757. </profile>
  758. <profile>
  759. <id>KerberosTests</id>
  760. <properties>
  761. <testcase.groups>category.KerberosTest</testcase.groups>
  762. </properties>
  763. </profile>
  764. <profile>
  765. <id>MetricsTests</id>
  766. <properties>
  767. <testcase.groups>category.MetricsTest</testcase.groups>
  768. </properties>
  769. </profile>
  770. <profile>
  771. <id>StackUpgradeTests</id>
  772. <properties>
  773. <testcase.groups>category.StackUpgradeTest</testcase.groups>
  774. </properties>
  775. </profile>
  776. </profiles>
  777. <!-- End of profiles for running unit tests. -->
  778. </project>