Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill, mail # dev - [21/29] git commit: DRILL-224: Add md5 and sha1 checksums to source tarball. Additionally, update pom to use local assembly plugin rather than apache release one so we can customize excludes to include .gitignore and sandbox.


Copy link to this message
-
[21/29] git commit: DRILL-224: Add md5 and sha1 checksums to source tarball. Additionally, update pom to use local assembly plugin rather than apache release one so we can customize excludes to include .gitignore and sandbox.
jacques@... 2013-09-11, 02:05
DRILL-224: Add md5 and sha1 checksums to source tarball.
Additionally, update pom to use local assembly plugin rather than apache release one so we can customize excludes to include .gitignore and sandbox.
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/1c91fdf5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/1c91fdf5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/1c91fdf5

Branch: refs/heads/master
Commit: 1c91fdf5bc9f4db92a06ee45af2dd9fca1f72db2
Parents: f526e4f
Author: Jacques Nadeau <[EMAIL PROTECTED]>
Authored: Tue Sep 10 17:33:48 2013 -0700
Committer: Jacques Nadeau <[EMAIL PROTECTED]>
Committed: Tue Sep 10 17:34:04 2013 -0700

----------------------------------------------------------------------
 pom.xml                          | 135 ++++++++++++++++++++++++++++++----
 src/assembly/source-assembly.xml |  71 ++++++++++++++++++
 2 files changed, 192 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1c91fdf5/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3fc2ee1..18fd77f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,6 @@
     <proto.cas.path>${project.basedir}/src/main/protobuf/</proto.cas.path>
     <dep.junit.version>4.11</dep.junit.version>
     <dep.slf4j.version>1.7.5</dep.slf4j.version>
-    <sourceReleaseAssemblyDescriptor>source-release-zip-tar</sourceReleaseAssemblyDescriptor>
   </properties>
 
   <scm>
@@ -81,6 +80,7 @@
   <build>
 
     <plugins>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
@@ -106,6 +106,7 @@
         </configuration>
       </plugin>
 
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
@@ -160,6 +161,7 @@
           </execution>
         </executions>
       </plugin>
+
     </plugins>
     <pluginManagement>
 
@@ -186,6 +188,18 @@
           </configuration>
         </plugin>
         <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>2.4.1</version>
+          <configuration>
+            <useReleaseProfile>false</useReleaseProfile>
+            <pushChanges>false</pushChanges>
+            <goals>deploy</goals>
+            <arguments>-Pdrill-release ${arguments}</arguments>
+          </configuration>
+        </plugin>
+
+        <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <version>0.10</version>
@@ -194,7 +208,7 @@
           </configuration>
         </plugin>
 
-        <!--This plugin's configuration is used to store Eclipse m2e settings
+        <!--This plugin's configuration is used to store Eclipse m2e settings
           only. It has no influence on the Maven build itself. -->
         <plugin>
           <groupId>org.eclipse.m2e</groupId>
@@ -275,18 +289,6 @@
             </lifecycleMappingMetadata>
           </configuration>
         </plugin>
-        <plugin>
-          <artifactId>maven-assembly-plugin</artifactId>
-          <executions>
-            <execution>
-              <id>source-release-assembly</id>
-              <configuration>
-                <finalName>apache-drill-${project.version}</finalName>
-                <tarLongFileMode>gnu</tarLongFileMode>
-              </configuration>
-            </execution>
-          </executions>
-        </plugin>
       </plugins>
     </pluginManagement>
   </build>
@@ -356,6 +358,111 @@
 
   <profiles>
     <profile>
+      <!-- this is heavily borrowed from the apache-root pom but updated
+        so we don't have some of the issues it has. -->
+      <id>drill-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>net.ju-n.maven.plugins</groupId>
+            <artifactId>checksum-maven-plugin</artifactId>
+            <version>1.2</version>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>artifacts</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <algorithms>
+                <algorithm>MD5</algorithm>
+                <algorithm>SHA-1</algorithm>
+              </algorithms>
+            </configuration>
+          </plugin>
+
+          <!-- Create a source-release artifact that contains the fully buildable
+            project directory source structure. This is the artifact which is the official
+            subject of any release vote. -->
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <dependencies>
+              <dependency>
+                <groupId>org.apache.apache.resources</groupId>
+                <artifactId>apache-source-release-assembly-descriptor</artifactId>
+                <version>1.0.4</version>
+              </dependency>
+            </dependencies>
+            <executions>
+              <execution>
+                <id>source-release-assembly</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
+                  <descriptor>src/assembly/source-assembly.xml</descriptor>
+                  <finalName>apache-drill-${project.version}</finalName>
+                  <tarLongFileMode>gnu</tarLongFileMode>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <!-- We want to deploy the artifact to a staging location for perusal -->
+          <plugin>
+