[ https://issues.apache.org/jira/browse/SCM-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17381296#comment-17381296 ]
Michael Osipov commented on SCM-952: ------------------------------------ Seen similar. I think the output was been written for 1.x which might ge the case here. > check-local-modification does not recognize new files (git) > ----------------------------------------------------------- > > Key: SCM-952 > URL: https://issues.apache.org/jira/browse/SCM-952 > Project: Maven SCM > Issue Type: Bug > Affects Versions: 1.11.2 > Reporter: D T > Priority: Minor > > If I add a new file src/main/MyNewFile.txt to my project and run > mvn scm:check-local-modification > > then the build completes successfully, showing only a warning regarding an > unrecognized lines: > {code:java} > [INFO] Scanning for projects... > [INFO] > [INFO] --------------< test:test >-------------- > [INFO] Building Test 1.9.1-SNAPSHOT > [INFO] ----------------------------[ maven-plugin > ]---------------------------- > [INFO] > [INFO] --- maven-scm-plugin:1.11.2:check-local-modification (default-cli) @ > test --- > [INFO] Executing: cmd.exe /X /C "git rev-parse --show-prefix" > [INFO] Working directory: C:\Users\test\git\test > [INFO] Executing: cmd.exe /X /C "git status --porcelain ." > [INFO] Working directory: C:\Users\test\git\test > [WARNING] Ignoring unrecognized line: ?? src/main/MyNewFile.txt > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.247 s > [INFO] Finished at: 2021-07-15T11:39:32+02:00 > [INFO] > ------------------------------------------------------------------------{code} > *Expected result:* > Build failed, because there is a file that isn't ignored or commited. > {code:java} > $ git --version > git version 2.32.0.windows.2 > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)