pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <groupId>org.apache.ambari</groupId>
  19. <artifactId>ambari</artifactId>
  20. <packaging>pom</packaging>
  21. <name>Ambari Main</name>
  22. <version>1.3.0-SNAPSHOT</version>
  23. <description>Ambari</description>
  24. <properties>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <clover.license>${user.home}/clover.license</clover.license>
  27. <buildnumber-maven-plugin-version>1.2</buildnumber-maven-plugin-version>
  28. <deb.publisher>Hortonworks</deb.publisher>
  29. <deb.section>universe/admin</deb.section>
  30. <deb.architecture>i386 amd64</deb.architecture>
  31. <deb.priority>extra</deb.priority>
  32. </properties>
  33. <pluginRepositories>
  34. <pluginRepository>
  35. <id>maven2-repository.dev.java.net</id>
  36. <name>Java.net Repository for Maven</name>
  37. <url>http://download.java.net/maven/2/</url>
  38. <layout>default</layout>
  39. </pluginRepository>
  40. <pluginRepository>
  41. <id>maven2-repository.atlassian</id>
  42. <name>Atlassian Maven Repository</name>
  43. <url>https://maven.atlassian.com/repository/public</url>
  44. <layout>default</layout>
  45. </pluginRepository>
  46. <pluginRepository>
  47. <id>maven2-glassfish-repository.dev.java.net</id>
  48. <name>Java.net Repository for Maven</name>
  49. <url>http://download.java.net/maven/glassfish/</url>
  50. </pluginRepository>
  51. </pluginRepositories>
  52. <build>
  53. <pluginManagement>
  54. <plugins>
  55. <plugin>
  56. <groupId>org.apache.rat</groupId>
  57. <artifactId>apache-rat-plugin</artifactId>
  58. <version>0.10</version>
  59. </plugin>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-surefire-plugin</artifactId>
  63. <version>2.12</version>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.codehaus.mojo</groupId>
  67. <artifactId>rpm-maven-plugin</artifactId>
  68. <version>2.0.1</version>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.vafer</groupId>
  72. <artifactId>jdeb</artifactId>
  73. </plugin>
  74. </plugins>
  75. </pluginManagement>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.codehaus.mojo</groupId>
  79. <artifactId>build-helper-maven-plugin</artifactId>
  80. <version>1.8</version>
  81. <executions>
  82. <execution>
  83. <id>parse-package-version</id>
  84. <goals>
  85. <goal>regex-property</goal>
  86. </goals>
  87. <configuration>
  88. <name>package-version</name>
  89. <value>${project.version}</value>
  90. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  91. <replacement>$1.$2.$3</replacement>
  92. <failIfNoMatch>true</failIfNoMatch>
  93. </configuration>
  94. </execution>
  95. <execution>
  96. <id>parse-package-release</id>
  97. <goals>
  98. <goal>regex-property</goal>
  99. </goals>
  100. <configuration>
  101. <name>package-release</name>
  102. <value>${project.version}</value>
  103. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-)(([0-9]+)|(SNAPSHOT)).*</regex>
  104. <replacement>$5</replacement>
  105. <failIfNoMatch>true</failIfNoMatch>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-compiler-plugin</artifactId>
  113. <version>3.0</version>
  114. <configuration>
  115. <source>1.6</source>
  116. <target>1.6</target>
  117. </configuration>
  118. </plugin>
  119. <plugin>
  120. <artifactId>maven-assembly-plugin</artifactId>
  121. <configuration>
  122. <descriptors>
  123. <descriptor>ambari-project/src/main/assemblies/empty.xml</descriptor>
  124. </descriptors>
  125. </configuration>
  126. <executions>
  127. <execution>
  128. <id>make-assembly</id>
  129. <phase>package</phase>
  130. <goals>
  131. <goal>single</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.codehaus.mojo</groupId>
  138. <artifactId>rpm-maven-plugin</artifactId>
  139. <version>2.0.1</version>
  140. <executions>
  141. <execution>
  142. <!-- unbinds rpm creation from maven lifecycle -->
  143. <phase>none</phase>
  144. <goals>
  145. <goal>attached-rpm</goal>
  146. </goals>
  147. </execution>
  148. </executions>
  149. <configuration>
  150. <copyright>2012, Apache Software Foundation</copyright>
  151. <group>Development</group>
  152. <description>Maven Recipe: RPM Package.</description>
  153. <release>${package-release}</release>
  154. <version>${package-version}</version>
  155. <mappings/>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.rat</groupId>
  160. <artifactId>apache-rat-plugin</artifactId>
  161. <configuration>
  162. <excludes>
  163. <exclude>**/repo_*.j2</exclude>
  164. <exclude>**/ambari-log4j.spec</exclude>
  165. <exclude>**/version.txt</exclude>
  166. <exclude>**/release.txt</exclude>
  167. <exclude>**/*.list</exclude>
  168. <exclude>**/hdp_mon_nagios_addons.conf</exclude>
  169. <exclude>**/*.json</exclude>
  170. <exclude>**/*.svg</exclude>
  171. <exclude>derby.log</exclude>
  172. <exclude>CHANGES.txt</exclude>
  173. <exclude>pass.txt</exclude>
  174. <exclude>contrib/addons/test/dataServices/jmx/data/cluster_configuration.json.nohbase</exclude>
  175. <exclude>contrib/ambari-scom/msi/src/GUI_Ambari.sln</exclude>
  176. <exclude>version</exclude>
  177. <!--IDE and GIT files-->
  178. <exclude>.idea/</exclude>
  179. <exclude>.git/</exclude>
  180. <exclude>**/.gitignore</exclude>
  181. <exclude>**/.gitattributes</exclude>
  182. <exclude>**/.gitkeep</exclude>
  183. <exclude>**/.jshintrc</exclude>
  184. <exclude>**/.editorconfig</exclude>
  185. <!--gitignore content-->
  186. <exclude>.DS_Store</exclude>
  187. <exclude>.iml/</exclude>
  188. <exclude>.classpath</exclude>
  189. <exclude>.project</exclude>
  190. <exclude>.settings</exclude>
  191. <exclude>*.pyc</exclude>
  192. <exclude>*.py~</exclude>
  193. <exclude>.hg</exclude>
  194. <exclude>.hgignore</exclude>
  195. <exclude>.hgtags</exclude>
  196. <!--Python Mock library (BSD license)-->
  197. <exclude>ambari-common/src/test/python/mock/**</exclude>
  198. <!--Jinja2 library (BSD license)-->
  199. <exclude>ambari-common/src/main/python/jinja2/**</exclude>
  200. <!--Contributions-->
  201. <exclude>contrib/ambari-scom/management-pack/Hadoop_MP/**</exclude>
  202. <exclude>contrib/addons/test/dataServices/jmx/data/cluster_configuration.json.nohbase</exclude>
  203. <exclude>contrib/ambari-scom/msi/src/GUI_Ambari.sln</exclude>
  204. <exclude>contrib/ambari-scom/ambari-scom-server/pass.txt</exclude>
  205. <exclude>contrib/ambari-scom/*/rat.txt</exclude>
  206. <exclude>contrib/ambari-scom/metrics-sink/target/**</exclude>
  207. <exclude>contrib/views/*/target/**</exclude>
  208. <exclude>contrib/views/files/src/main/resources/ui/bower_components/**</exclude>
  209. <exclude>contrib/views/files/src/main/resources/ui/node/**</exclude>
  210. <exclude>contrib/views/files/src/main/resources/ui/node_modules/**</exclude>
  211. <exclude>contrib/views/files/src/main/resources/ui/public/**</exclude>
  212. <exclude>contrib/views/jobs/src/main/resources/ui/.tmp/**</exclude>
  213. <exclude>contrib/views/jobs/src/main/resources/ui/**/bower_components/**</exclude>
  214. <exclude>contrib/views/jobs/src/main/resources/ui/dist/**</exclude>
  215. <exclude>contrib/views/jobs/src/main/resources/ui/node/**</exclude>
  216. <exclude>contrib/views/jobs/src/main/resources/ui/node_modules/**</exclude>
  217. <exclude>contrib/views/jobs/src/main/resources/ui/**/.bowerrc</exclude>
  218. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/public/**</exclude>
  219. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/node_modules/**</exclude>
  220. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/node/**</exclude>
  221. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/bower_components/**</exclude>
  222. <exclude>contrib/views/pig/src/main/resources/ui/pig-web/vendor/**</exclude>
  223. <exclude>contrib/views/slider/src/main/resources/ui/public/**</exclude>
  224. <exclude>contrib/views/slider/src/main/resources/ui/node_modules/**</exclude>
  225. <exclude>contrib/views/slider/src/main/resources/ui/vendor/**</exclude>
  226. <exclude>contrib/views/slider/src/main/resources/ui/app/assets/javascripts/modernizr-2.6.2.min.js</exclude>
  227. <exclude>contrib/addons/package/deb/nagios_addon_deb_control</exclude>
  228. <exclude>contrib/addons/src/addOns/nagios/conf.d/hdp_mon_nagios_addons.conf</exclude>
  229. <exclude>contrib/views/*/.classpath</exclude>
  230. <exclude>contrib/views/*/.project</exclude>
  231. <exclude>contrib/views/*/.settings/**</exclude>
  232. <!--Velocity log -->
  233. <exclude>**/velocity.log*</exclude>
  234. </excludes>
  235. </configuration>
  236. <executions>
  237. <execution>
  238. <phase>test</phase>
  239. <goals>
  240. <goal>check</goal>
  241. </goals>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.vafer</groupId>
  247. <artifactId>jdeb</artifactId>
  248. <version>1.0.1</version>
  249. <executions>
  250. <execution>
  251. <phase>none</phase>
  252. <goals>
  253. <goal>jdeb</goal>
  254. </goals>
  255. </execution>
  256. </executions>
  257. <configuration>
  258. <skip>true</skip>
  259. <attach>false</attach>
  260. <submodules>true</submodules>
  261. <controlDir>${basedir}/ambari-project/src/main/package/deb/control</controlDir>
  262. </configuration>
  263. </plugin>
  264. </plugins>
  265. </build>
  266. <profiles>
  267. <profile>
  268. <id>default</id>
  269. <activation>
  270. <activeByDefault>true</activeByDefault>
  271. </activation>
  272. <modules>
  273. <module>ambari-web</module>
  274. <module>ambari-project</module>
  275. <module>ambari-views</module>
  276. <module>ambari-admin</module>
  277. <module>ambari-server</module>
  278. <module>ambari-agent</module>
  279. <module>ambari-client</module>
  280. <module>ambari-shell</module>
  281. </modules>
  282. </profile>
  283. <profile>
  284. <id>static-web</id>
  285. <modules>
  286. <module>ambari-project</module>
  287. <module>ambari-views</module>
  288. <module>ambari-admin</module>
  289. <module>ambari-server</module>
  290. <module>ambari-agent</module>
  291. <module>ambari-client</module>
  292. <module>ambari-shell</module>
  293. </modules>
  294. </profile>
  295. <profile>
  296. <id>clover</id>
  297. <activation>
  298. <activeByDefault>false</activeByDefault>
  299. <property>
  300. <name>clover</name>
  301. </property>
  302. </activation>
  303. <properties>
  304. <maven.clover.licenseLocation>${clover.license}</maven.clover.licenseLocation>
  305. <clover.version>3.1.11</clover.version>
  306. </properties>
  307. <build>
  308. <plugins>
  309. <plugin>
  310. <groupId>com.atlassian.maven.plugins</groupId>
  311. <artifactId>maven-clover2-plugin</artifactId>
  312. <version>${clover.version}</version>
  313. <configuration>
  314. <includesAllSourceRoots>true</includesAllSourceRoots>
  315. <includesTestSourceRoots>true</includesTestSourceRoots>
  316. <targetPercentage>50%</targetPercentage>
  317. <generateHtml>true</generateHtml>
  318. <generateXml>true</generateXml>
  319. <excludes>
  320. <exclude>**/generated/**</exclude>
  321. </excludes>
  322. </configuration>
  323. <executions>
  324. <execution>
  325. <id>clover-setup</id>
  326. <phase>process-sources</phase>
  327. <goals>
  328. <goal>setup</goal>
  329. </goals>
  330. </execution>
  331. <execution>
  332. <id>clover</id>
  333. <phase>test</phase>
  334. <goals>
  335. <goal>clover</goal>
  336. </goals>
  337. </execution>
  338. </executions>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. </profile>
  343. </profiles>
  344. </project>