[
https://issues.apache.org/jira/browse/SCM-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963757#comment-17963757
]
ASF GitHub Bot commented on SCM-952:
------------------------------------
jira-importer commented on issue #1170:
URL: https://github.com/apache/maven-scm/issues/1170#issuecomment-2964649793
**[Michael
Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)**
commented
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 (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-gitexe
> 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.20.10#820010)