build release version for Storm

Compared with the branches of Storm source code in GitHub, Storm doesn’t have any release package for version 1.1.* and 2.*. So I decide to build it from source code, to test the new features on Storm 2.*.

Step 1. clone source code from github

git clone https://github.com/apache/storm.git master

Step 2. build the project with Maven

cd  storm
mvn clean install -DskipTests=true # ignore test to save time

Step 3. create the binary distribution

cd storm-dist/binary
mvn package

The .zip and .tar.gz binary archives will be created in the storm-dist/binary/final-package/target/ sub-directory.

$ ls -lth final-package/target/
total 1071952
-rw-r--r--  1 mingmxu  110050932   801B Jan 26 12:23 apache-storm-2.0.0-SNAPSHOT.zip.asc
-rw-r--r--  1 mingmxu  110050932   801B Jan 26 12:23 apache-storm-2.0.0-SNAPSHOT.tar.gz.asc
-rw-r--r--  1 mingmxu  110050932   3.3K Jan 26 12:23 apache-storm-2.0.0-SNAPSHOT.pom
-rw-r--r--  1 mingmxu  110050932   801B Jan 26 12:23 apache-storm-2.0.0-SNAPSHOT.pom.asc
-rw-r--r--  1 mingmxu  110050932   262M Jan 26 12:23 apache-storm-2.0.0-SNAPSHOT.zip
drwxr-xr-x  8 mingmxu  110050932   272B Jan 26 12:23 archive-tmp
-rw-r--r--  1 mingmxu  110050932   262M Jan 26 12:23 apache-storm-2.0.0-SNAPSHOT.tar.gz
drwxr-xr-x  3 mingmxu  110050932   102B Jan 26 12:11 maven-shared-archive-resources

Issue I meet and solutions:

1. Could not find artifact org.apache.storm:storm-maven-plugins:jar:1.1.0-SNAPSHOT

solution: I change the version used in storm-core/pom.xml directly to an available version.

@@ -875,7 +875,7 @@
             <plugin>
                <groupId>org.apache.storm</groupId>
                <artifactId>storm-maven-plugins</artifactId>
-               <version>${project.version}</version>
+               <version>1.0.2</version>
                <executions>
                  <execution>
                    <id>version-info</id>
@@ -970,6 +970,41 @@

2. Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (default) on project final-package: Unable to execute gpg command: Error while executing process. Cannot run program “gpg”: error=2, No such file or directory

solution: You need to install GPG. In Mac, I install GPG suit, and generate a new key pair in GPG Keychain.

One thought on “build release version for Storm

  1. Hi,

    Good post. It’s simple and straight to the point. I am facing the second issue in your blog, i.e ,

    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.4:sign (default) on project apache-storm-bin: Exit code: 2

    I am on Ubuntu and I have default gpg version 1.4.20 on my system. Could you please mention the steps for resolving gpg issue? I am not sure how to proceed with “generate a new key pair in GPG Keychain.” .

    Thanks.

Comments are closed.