[
https://issues.apache.org/jira/browse/SCM-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965121#comment-17965121
]
Olivier Lamy commented on SCM-952:
----------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-scm#1170|https://github.com/apache/maven-scm/issues/1170]. Please
visit the GitHub issue to view further activity, add comments, or subscribe to
receive notifications.
> 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)