[ https://issues.apache.org/jira/browse/MPATCH-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903814#comment-17903814 ]
Elliotte Rusty Harold edited comment on MPATCH-22 at 12/7/24 1:55 PM: ---------------------------------------------------------------------- confirmed {{ ERROR] ------------------------------------------------- [ERROR] [INFO] ------------------------------------------------- [INFO] Build Summary: [INFO] Passed: 8, Failed: 1, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------- [ERROR] The following builds failed: [ERROR] * path with spaces/pom.xml [INFO] ------------------------------------------------- [INFO] ------------------------------------------------------------------------ }} was (Author: elharo): confirmed {{ERROR] ------------------------------------------------- [ERROR] [INFO] ------------------------------------------------- [INFO] Build Summary: [INFO] Passed: 8, Failed: 1, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------- [ERROR] The following builds failed: [ERROR] * path with spaces/pom.xml [INFO] ------------------------------------------------- [INFO] ------------------------------------------------------------------------ }} > Patching fails if target path contains "fail", "skip" or "reject" > ----------------------------------------------------------------- > > Key: MPATCH-22 > URL: https://issues.apache.org/jira/browse/MPATCH-22 > Project: Maven Patch Plugin > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Oleg Rekutin > Priority: Minor > > Default failure match phrases 'fail', 'skip' and 'reject' are way too broad. > If they appear anywhere in the path of the target file being patched, then > the plugin execution will fail with: > {code} > Failed to apply patches (detected watch-phrase: 'fail' in output). If this is > in error, configure the patchFailureWatchPhrases parameter. > {code} > One can get into this situation in a typical CI environment by creating a > branch with 'fail' in the name. > To reproduce, clone maven-patch-plugin repo to a directory with fail in the > name and run the ITs: mvn verify -P run-its -- This message was sent by Atlassian Jira (v8.20.10#820010)