You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/07/31 22:51:40 UTC

git commit: AMBARI-6424. Add ambari-views JAR to maven at release. (Alejandro Fernandez via swagle)

Repository: ambari
Updated Branches:
  refs/heads/trunk b1771e2ca -> 18340ef32


AMBARI-6424. Add ambari-views JAR to maven at release. (Alejandro Fernandez via swagle)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/18340ef3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/18340ef3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/18340ef3

Branch: refs/heads/trunk
Commit: 18340ef32ddde82829e77405ecd5118c7e0b27b6
Parents: b1771e2
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Thu Jul 31 13:51:21 2014 -0700
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Thu Jul 31 13:51:21 2014 -0700

----------------------------------------------------------------------
 ambari-project/pom.xml | 11 ++++++
 ambari-views/pom.xml   | 81 +++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 90 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/18340ef3/ambari-project/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-project/pom.xml b/ambari-project/pom.xml
index e3502ae..58e2e8f 100644
--- a/ambari-project/pom.xml
+++ b/ambari-project/pom.xml
@@ -25,6 +25,17 @@
   <version>1.3.0-SNAPSHOT</version>
   <description>Apache Ambari Project POM</description>
   <name>Apache Ambari Project POM</name>
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <issueManagement>
+    <system>jira</system>
+    <url>https://issues.apache.org/jira/browse/AMBARI</url>
+  </issueManagement>
   <packaging>pom</packaging>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

http://git-wip-us.apache.org/repos/asf/ambari/blob/18340ef3/ambari-views/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-views/pom.xml b/ambari-views/pom.xml
index 23cb784..a2686aa 100644
--- a/ambari-views/pom.xml
+++ b/ambari-views/pom.xml
@@ -30,6 +30,11 @@
     <name>Ambari Views</name>
     <version>1.3.0-SNAPSHOT</version>
     <description>Ambari View interfaces.</description>
+    <url>http://ambari.apache.org/</url>
+    <scm>
+      <url>https://github.com/apache/ambari</url>
+      <connection>https://git-wip-us.apache.org/repos/asf/ambari.git</connection>
+    </scm>
     <dependencies>
         <dependency>
             <groupId>junit</groupId>
@@ -121,7 +126,6 @@
                     </execution>
                 </executions>
             </plugin>
-
             <plugin>
                 <groupId>org.apache.rat</groupId>
                 <artifactId>apache-rat-plugin</artifactId>
@@ -152,7 +156,80 @@
                     </execution>
                 </executions>
             </plugin>
+            <!-- Generate the -sources.jar file that is required by Apache Maven in order to host this project
+            on a remote repo. -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                          <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <!-- Generate the -javadoc.jar file that is required by Apache Maven in order to host this project
+            on a remote repo. -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-javadocs</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <!-- Sign the build artifacts with the PGP key. Note that PGP must be installed and in the search path.
+            See https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-gpg-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>sign-artifacts</id>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>sign</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
+    <profiles>
+        <!-- This profile exists to only sign the build artifacts when making a release candidate
+        instead of a SNAPSHOT. -->
+        <profile>
+            <id>release-sign-artifacts</id>
+            <activation>
+                <property>
+                    <name>performRelease</name>
+                    <value>true</value>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.5</version>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>
-