[ https://issues.apache.org/jira/browse/NIFI-11917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754202#comment-17754202 ]
Gregory M. Foreman commented on NIFI-11917: ------------------------------------------- This works around the issue by skipping the offending pom: {code:java} mvn -T C2.0 --batch-mode -DskipTests -Prpm -pl '!nifi-toolkit/nifi-toolkit-assembly' clean install {code} > Building RPM from source producers error > ---------------------------------------- > > Key: NIFI-11917 > URL: https://issues.apache.org/jira/browse/NIFI-11917 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.23.0 > Environment: Linux > Reporter: Gregory M. Foreman > Priority: Major > > Nifi 1.23.0 is unable to build from source when using the rpm profile setting. > This command: > {code:java} > JAVA_OPTS="-Xms128m -Xmx4g" > MAVEN_OPTS="-Dorg.slf4j.simpleLogger.defaultLogLevel=ERROR -Xms1024m > -Xmx3076m -XX:MaxPermSize=256m" > mvn -T C2.0 --batch-mode -Prpm -DskipTests clean installĀ > {code} > produces the following error: > {code:java} > [ERROR] Failed to execute goal > org.codehaus.mojo:rpm-maven-plugin:2.2.0:attached-rpm (build-bin-rpm) on > project nifi-toolkit-assembly: Source location > /root/test/nifi-1.23.0/nifi-toolkit/nifi-toolkit-assembly/target/nifi-toolkit-1.23.0-bin/nifi-toolkit-1.23.0/LICENSE > does not exist -> [Help 1]{code} > The path above ends at: > /root/test2/nifi/nifi-toolkit/nifi-toolkit-assembly/target/ > There is a zip file within it: > nifi-toolkit-1.23.0-bin.zip > It seems like this unzip was missed. > Environment info: > {code:bash} > mvn -version > Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) > Maven home: /opt/maven > Java version: 1.8.0_372, vendor: Red Hat, Inc., runtime: > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.372.b07-1.el7_9.x86_64/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.10.0-1160.95.1.el7.x86_64", arch: "amd64", > family: "unix"{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)