You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2019/09/04 19:12:06 UTC

[cassandra-diff] branch master updated: add parent pom and doc how to do a release (#2)

This is an automated email from the ASF dual-hosted git repository.

marcuse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-diff.git


The following commit(s) were added to refs/heads/master by this push:
     new a44e6d7  add parent pom and doc how to do a release (#2)
a44e6d7 is described below

commit a44e6d71284b3d705c8468ed46c6bb50c98fbc01
Author: Marcus Eriksson <ma...@apache.org>
AuthorDate: Wed Sep 4 21:12:01 2019 +0200

    add parent pom and doc how to do a release (#2)
    
    * add parent pom and doc how to do a release
    
    * add scm connection and release plugin version
---
 README.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 pom.xml   | 32 +++++++++++++++++++++++++++++++-
 2 files changed, 87 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 7b48652..c79e17d 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Cassandra diff
+# Apache Cassandra diff
 
 ## Configuration
 See `spark-job/localconfig.yaml` for an example config.
@@ -84,3 +84,58 @@ $ curl -s localhost:8089/jobs/99b8d556-07ed-4bfd-b978-7d9b7b2cc21a/results | pyt
   ]
 
 ```
+## Releases
+We push maven artifacts to `repository.apache.org`. To create a release, follow the instructions
+[here|http://www.apache.org/dev/publishing-maven-artifacts.html], basically:
+
+1. make sure your `~/.m2/settings.xml` has entries for the apache repositories:
+   ```xml
+   <settings>
+   ...
+       <servers>
+           <!-- To publish a snapshot of some part of Maven -->
+           <server>
+               <id>apache.snapshots.https</id>
+               <username> <!-- YOUR APACHE LDAP USERNAME --> </username>
+               <password> <!-- YOUR APACHE LDAP PASSWORD (encrypted) --> </password>
+           </server>
+           <!-- To stage a release of some part of Maven -->
+           <server>
+               <id>apache.releases.https</id>
+               <username> <!-- YOUR APACHE LDAP USERNAME --> </username>
+               <password> <!-- YOUR APACHE LDAP PASSWORD (encrypted) --> </password>
+           </server>
+           ...
+       </servers>
+    </settings>
+   ```
+2. Generate GPG keys:
+  ```shell script
+$ gpg --gen-key
+  ```
+
+3. Try a local install with the apache profile to make sure everything is setup correctly:
+  ```shell script
+$ mvn clean install -Papache-release
+  ```
+  Note, if you get an error like `gpg: signing failed: Inappropriate ioctl for device` you can run the command like
+  this instead:
+  ```shell script
+$ GPG_TTY=$(tty) mvn clean install -Papache-release
+  ```
+
+4. Publish a snapshot:
+  ```shell script
+$ mvn deploy
+  ```
+
+5. Prepare the release:
+  ```shell script
+$ mvn release:clean
+$ mvn release:prepare
+  ```
+
+6. Stage the release for a vote
+  ```shell script
+$ mvn release:perform
+  ```
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index fce7cc1..16b35b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,11 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
 		 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
-
+    <parent>
+      <groupId>org.apache</groupId>
+      <artifactId>apache</artifactId>
+      <version>10</version>
+    </parent>
     <groupId>org.apache.cassandra.diff</groupId>
     <artifactId>diff</artifactId>
     <packaging>pom</packaging>
@@ -34,6 +38,13 @@
       <module>api-server</module>
     </modules>
 
+    <scm>
+      <connection>scm:git:https://gitbox.apache.org/repos/asf/cassandra-diff.git</connection>
+      <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/cassandra-diff.git</developerConnection>
+      <url>https://github.com/apache/cassandra-diff/tree/${project.scm.tag}</url>
+      <tag>master</tag>
+    </scm>
+
     <properties>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
@@ -96,6 +107,11 @@
       <plugins>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>2.5.3</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.6.1</version>
           <configuration>
@@ -103,6 +119,20 @@
             <target>1.8</target>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-gpg-plugin</artifactId>
+          <version>1.6</version>
+          <executions>
+            <execution>
+              <id>sign-artifacts</id>
+              <phase>verify</phase>
+              <goals>
+                <goal>sign</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
       </plugins>
     </build>
 </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org