less than 1 minute read

In my previous post Contributing to NiFi-11608 I share a JIRA and associated PR I worked on which was included in the next 1.22 release of NiFi. As part of the release process nifi community members are allowed to vote. Here are the commands from my terminal to build, test, and deploy an instance of nifi 1.22 for my release voting.

wget https://dist.apache.org/repos/dist/dev/nifi/KEYS
gpg --import KEYS
brew install gpg
gpg --import KEYS
rm -rf ~/.m2/repository/*
wget https://dist.apache.org/repos/dist/dev/nifi/nifi-1.22.0/nifi-1.22.0-source-release.zip\
wget https://dist.apache.org/repos/dist/dev/nifi/nifi-1.22.0/nifi-1.22.0-source-release.zip.asc\
wget https://dist.apache.org/repos/dist/dev/nifi/nifi-1.22.0/nifi-1.22.0-source-release.zip.sha256\
wget https://dist.apache.org/repos/dist/dev/nifi/nifi-1.22.0/nifi-1.22.0-source-release.zip.sha512
gpg --verify -v nifi-1.22.0-source-release.zip.asc
shasum -a 256 nifi-1.22.0-source-release.zip\
shasum -a 512 nifi-1.22.0-source-release.zip
unzip -DD nifi-1.22.0-source-release.zip
cd nifi-1.22.0
JAVA_HOME=`/usr/libexec/java_home -v 17` mvn clean install -DskipTests
cd nifi-assembly/target/
unzip nifi-1.22.0-bin.zip
./nifi-1.22.0/bin/nifi.sh start
tail -f ./nifi-1.22.0/logs/nifi-app.log

Watch out! Notice here I am specifying the version of java I want to build with, as my maven 3.9.2 rolls with java 20 and nifi 1.22 is not ready for 20 yet.

First build no tests

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  48:20 min
[INFO] Finished at: 2023-06-07T16:20:15-04:00
[INFO] ------------------------------------------------------------------------



My second build w/ tests:



[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  20:19 min (Wall Clock)
[INFO] Finished at: 2023-06-07T16:59:35-04:00
[INFO] ------------------------------------------------------------------------

Tags:

Categories:

Updated: