Skip to content

Commit bf47991

Browse files
committed
revert if logic for versions
1 parent 78b7478 commit bf47991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nifi/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN microdnf update && \
1818
# [ERROR] Detected Maven Version: 3.6.3 is not in the allowed range [3.9.6,).
1919
#
2020
WORKDIR /tmp
21-
RUN if [[ "${PRODUCT}" == 2.* ]] ; then \
21+
RUN if [[ "${PRODUCT}" != 1.* ]] ; then \
2222
curl "https://repo.stackable.tech/repository/packages/maven/apache-maven-${MAVEN_VERSION}-bin.tar.gz" | tar -xzC . && \
2323
ln -sf /tmp/apache-maven-${MAVEN_VERSION}/bin/mvn /usr/bin/mvn ; \
2424
fi
@@ -47,7 +47,7 @@ RUN curl 'https://repo.stackable.tech/repository/m2/tech/stackable/nifi/stackabl
4747
cd /stackable/nifi-${PRODUCT}-src/ && \
4848
# NOTE: Since NiFi 2.0.0 PutIceberg Processor and services were removed, so including the `include-iceberg` profile does nothing.
4949
# Additionally some modules were moved to optional build profiles, so we need to add `include-hadoop` to get `nifi-parquet-nar` for example.
50-
if [[ "${PRODUCT}" == 2.* ]] ; then \
50+
if [[ "${PRODUCT}" != 1.* ]] ; then \
5151
mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-hadoop,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp ; \
5252
else \
5353
mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-iceberg,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp ; \

0 commit comments

Comments
 (0)