pom.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  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-views</artifactId>
  26. <packaging>jar</packaging>
  27. <name>Ambari Views</name>
  28. <version>1.3.0-SNAPSHOT</version>
  29. <description>Ambari View interfaces.</description>
  30. <url>http://ambari.apache.org/</url>
  31. <scm>
  32. <url>https://github.com/apache/ambari</url>
  33. <connection>https://git-wip-us.apache.org/repos/asf/ambari.git</connection>
  34. </scm>
  35. <dependencies>
  36. <dependency>
  37. <groupId>junit</groupId>
  38. <artifactId>junit</artifactId>
  39. <version>4.8.1</version>
  40. <scope>test</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.easymock</groupId>
  44. <artifactId>easymock</artifactId>
  45. <version>3.1</version>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.sun.jersey</groupId>
  50. <artifactId>jersey-core</artifactId>
  51. <version>1.8</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>commons-codec</groupId>
  55. <artifactId>commons-codec</artifactId>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.codehaus.mojo</groupId>
  62. <artifactId>build-helper-maven-plugin</artifactId>
  63. <version>1.8</version>
  64. <executions>
  65. <execution>
  66. <id>parse-version</id>
  67. <phase>validate</phase>
  68. <goals>
  69. <goal>parse-version</goal>
  70. </goals>
  71. </execution>
  72. <execution>
  73. <id>regex-property</id>
  74. <goals>
  75. <goal>regex-property</goal>
  76. </goals>
  77. <configuration>
  78. <name>ambariVersion</name>
  79. <value>${project.version}</value>
  80. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  81. <replacement>$1.$2.$3</replacement>
  82. <failIfNoMatch>false</failIfNoMatch>
  83. </configuration>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. <plugin>
  88. <artifactId>maven-compiler-plugin</artifactId>
  89. <version>3.0</version>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.vafer</groupId>
  93. <artifactId>jdeb</artifactId>
  94. <version>1.0.1</version>
  95. <executions>
  96. <execution>
  97. <phase>none</phase>
  98. <goals>
  99. <goal>jdeb</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <configuration>
  104. <skip>true</skip>
  105. <submodules>false</submodules>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <artifactId>maven-assembly-plugin</artifactId>
  110. <configuration>
  111. <tarLongFileMode>gnu</tarLongFileMode>
  112. <descriptors>
  113. <descriptor>src/main/assemblies/views.xml</descriptor>
  114. </descriptors>
  115. </configuration>
  116. <executions>
  117. <execution>
  118. <id>build-tarball</id>
  119. <phase>prepare-package</phase>
  120. <goals>
  121. <goal>single</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.rat</groupId>
  128. <artifactId>apache-rat-plugin</artifactId>
  129. <configuration>
  130. <excludes>
  131. <exclude>**/*.json</exclude>
  132. </excludes>
  133. <excludes>
  134. <exclude>**/*.iml</exclude>
  135. </excludes>
  136. </configuration>
  137. <executions>
  138. <execution>
  139. <phase>test</phase>
  140. <goals>
  141. <goal>check</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.codehaus.mojo</groupId>
  148. <artifactId>rpm-maven-plugin</artifactId>
  149. <version>2.0.1</version>
  150. <executions>
  151. <execution>
  152. <phase>none</phase>
  153. <goals>
  154. <goal>rpm</goal>
  155. </goals>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <!-- Generate the -sources.jar file that is required by Apache Maven in order to host this project
  160. on a remote repo. -->
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-source-plugin</artifactId>
  164. <executions>
  165. <execution>
  166. <id>attach-sources</id>
  167. <goals>
  168. <goal>jar</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <!-- Generate the -javadoc.jar file that is required by Apache Maven in order to host this project
  174. on a remote repo. -->
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-javadoc-plugin</artifactId>
  178. <executions>
  179. <execution>
  180. <id>attach-javadocs</id>
  181. <goals>
  182. <goal>jar</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <!-- Sign the build artifacts with the PGP key. Note that PGP must be installed and in the search path.
  188. See https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven -->
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-gpg-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <id>sign-artifacts</id>
  195. <phase>deploy</phase>
  196. <goals>
  197. <goal>sign</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. <profiles>
  205. <!-- This profile exists to only sign the build artifacts when making a release candidate
  206. instead of a SNAPSHOT. -->
  207. <profile>
  208. <id>release-sign-artifacts</id>
  209. <activation>
  210. <property>
  211. <name>performRelease</name>
  212. <value>true</value>
  213. </property>
  214. </activation>
  215. <build>
  216. <plugins>
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-gpg-plugin</artifactId>
  220. <version>1.5</version>
  221. <executions>
  222. <execution>
  223. <id>sign-artifacts</id>
  224. <phase>deploy</phase>
  225. <goals>
  226. <goal>sign</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. </profile>
  234. </profiles>
  235. </project>