joewitt opened a new pull request, #11976: URL: https://github.com/apache/nifi/pull/11976
# Summary [NIFI-16647](https://issues.apache.org/jira/browse/NIFI-16647) The custom distribution examples in the Administration Guide ("Build a Custom Distribution") no longer work as written: - `-Pinclude-grpc` refers to a profile that was removed with the gRPC bundle in NIFI-12069. Maven only logs `The requested profile "include-grpc" could not be activated because it does not exist` and continues, so the mistake is silent. - The example runs `./mvnw` after `cd <nifi_source_folder>/nifi-assembly`, but `mvnw` exists only at the repository root. - `-Pinclude-all` does not activate the optional bundle profiles. That profile only sets the `allProfiles` property, which Maven does not use when evaluating property-based activation of other profiles. The property has to be supplied on the command line as `-DallProfiles=true`. The examples now follow the build form already documented in the README (`-am -pl :nifi-assembly`) and use `-DallProfiles=true`. # Tracking Please complete the following tracking steps prior to pull request creation. ### Issue Tracking - [x] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created ### Pull Request Tracking - [x] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000` - [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000` - [x] Pull request contains [commits signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) with a registered key indicating `Verified` status ### Pull Request Formatting - [x] Pull Request based on current revision of the `main` branch - [x] Pull Request refers to a feature branch with one commit containing changes # Verification Please indicate the verification steps performed prior to pull request creation. ### Build - [ ] Build completed using `./mvnw clean install -P contrib-check` - [ ] JDK 21 - [ ] JDK 25 Not applicable: the change is limited to AsciiDoc text in `administration-guide.adoc`. ### Verification performed Ran each corrected command with the `validate` phase from the repository root and compared the resulting reactor: - [x] `-am -pl :nifi-assembly`: 519 modules - [x] `-am -pl :nifi-assembly -Pinclude-graph,include-media`: 532 modules, includes `nifi-graph-nar` and `nifi-media-nar`, no profile activation warnings - [x] `-am -pl :nifi-assembly -DallProfiles=true`: 575 modules, includes the graph, media, Couchbase and Hadoop NARs - [x] `-Pinclude-all`: effective `nifi-assembly` dependency list is identical to the default (149 dependencies), compared with 168 for `-DallProfiles=true` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
