ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject git commit: AMBARI-6424. Add ambari-views JAR to maven at release. (Alejandro Fernandez via swagle)
Date Thu, 31 Jul 2014 20:51:40 GMT
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 <swagle@hortonworks.com>
Authored: Thu Jul 31 13:51:21 2014 -0700
Committer: Siddharth Wagle <swagle@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>
-


Mime
View raw message