pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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.8</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.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <version>3.0</version>
  81. <configuration>
  82. <source>1.6</source>
  83. <target>1.6</target>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <artifactId>maven-assembly-plugin</artifactId>
  88. <configuration>
  89. <descriptors>
  90. <descriptor>ambari-project/src/main/assemblies/empty.xml</descriptor>
  91. </descriptors>
  92. </configuration>
  93. <executions>
  94. <execution>
  95. <id>make-assembly</id>
  96. <phase>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>rpm-maven-plugin</artifactId>
  106. <version>2.0.1</version>
  107. <executions>
  108. <execution>
  109. <!-- unbinds rpm creation from maven lifecycle -->
  110. <phase>none</phase>
  111. <goals>
  112. <goal>attached-rpm</goal>
  113. </goals>
  114. </execution>
  115. </executions>
  116. <configuration>
  117. <copyright>2012, Apache Software Foundation</copyright>
  118. <group>Development</group>
  119. <description>Maven Recipe: RPM Package.</description>
  120. <mappings/>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.vafer</groupId>
  125. <artifactId>jdeb</artifactId>
  126. <version>1.0.1</version>
  127. <executions>
  128. <execution>
  129. <phase>none</phase>
  130. <goals>
  131. <goal>jdeb</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. <configuration>
  136. <verbose>false</verbose>
  137. <submodules>true</submodules>
  138. <deb>${basedir}/target/${artifactId}_${version}.deb</deb>
  139. <skip>false</skip>
  140. <controlDir>${basedir}/src/main/package/deb/control</controlDir>
  141. </configuration>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.rat</groupId>
  145. <artifactId>apache-rat-plugin</artifactId>
  146. <configuration>
  147. <excludes>
  148. <exclude>**/*.json</exclude>
  149. <exclude>derby.log</exclude>
  150. <exclude>CHANGES.txt</exclude>
  151. <exclude>pass.txt</exclude>
  152. <exclude>contrib/addons/test/dataServices/jmx/data/cluster_configuration.json.nohbase</exclude>
  153. <exclude>version</exclude>
  154. <!--IDE and GIT files-->
  155. <exclude>.idea/</exclude>
  156. <exclude>.git/</exclude>
  157. <exclude>**/.gitignore</exclude>
  158. <exclude>**/.gitattributes</exclude>
  159. <!--gitignore content-->
  160. <exclude>.DS_Store</exclude>
  161. <exclude>.iml/</exclude>
  162. <exclude>.classpath</exclude>
  163. <exclude>.project</exclude>
  164. <exclude>.settings</exclude>
  165. <exclude>*.pyc</exclude>
  166. <exclude>*.py~</exclude>
  167. <exclude>.hg</exclude>
  168. <exclude>.hgignore</exclude>
  169. <exclude>.hgtags</exclude>
  170. <!--Python Mock library (BSD license)-->
  171. <exclude>ambari-common/src/test/python/mock/**</exclude>
  172. <!--Jinja2 library (BSD license)-->
  173. <exclude>ambari-common/src/main/python/jinja2/**</exclude>
  174. <!--Contributions-->
  175. <exclude>contrib/ambari-scom/management-pack/Hadoop_MP/**</exclude>
  176. </excludes>
  177. </configuration>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. <profiles>
  182. <profile>
  183. <id>default</id>
  184. <activation>
  185. <activeByDefault>true</activeByDefault>
  186. </activation>
  187. <modules>
  188. <module>ambari-web</module>
  189. <module>ambari-project</module>
  190. <module>ambari-views</module>
  191. <module>ambari-server</module>
  192. <module>ambari-agent</module>
  193. <module>ambari-client</module>
  194. </modules>
  195. </profile>
  196. <profile>
  197. <id>static-web</id>
  198. <modules>
  199. <module>ambari-project</module>
  200. <module>ambari-views</module>
  201. <module>ambari-server</module>
  202. <module>ambari-agent</module>
  203. <module>ambari-client</module>
  204. </modules>
  205. </profile>
  206. <profile>
  207. <id>clover</id>
  208. <activation>
  209. <activeByDefault>false</activeByDefault>
  210. <property>
  211. <name>clover</name>
  212. </property>
  213. </activation>
  214. <properties>
  215. <maven.clover.licenseLocation>${clover.license}</maven.clover.licenseLocation>
  216. <clover.version>3.1.11</clover.version>
  217. </properties>
  218. <build>
  219. <plugins>
  220. <plugin>
  221. <groupId>com.atlassian.maven.plugins</groupId>
  222. <artifactId>maven-clover2-plugin</artifactId>
  223. <version>${clover.version}</version>
  224. <configuration>
  225. <includesAllSourceRoots>true</includesAllSourceRoots>
  226. <includesTestSourceRoots>true</includesTestSourceRoots>
  227. <targetPercentage>50%</targetPercentage>
  228. <generateHtml>true</generateHtml>
  229. <generateXml>true</generateXml>
  230. <excludes>
  231. <exclude>**/generated/**</exclude>
  232. </excludes>
  233. </configuration>
  234. <executions>
  235. <execution>
  236. <id>clover-setup</id>
  237. <phase>process-sources</phase>
  238. <goals>
  239. <goal>setup</goal>
  240. </goals>
  241. </execution>
  242. <execution>
  243. <id>clover</id>
  244. <phase>test</phase>
  245. <goals>
  246. <goal>clover</goal>
  247. </goals>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. </plugins>
  252. </build>
  253. </profile>
  254. </profiles>
  255. </project>