Oleg Rekutin created MPATCH-22:
----------------------------------

             Summary: 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


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.3.4#803005)

Reply via email to