You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "D T (Jira)" <ji...@apache.org> on 2021/07/15 11:23:00 UTC

[jira] [Updated] (SCM-952) check-local-modification does not recognize new files (git)

     [ https://issues.apache.org/jira/browse/SCM-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

D T updated SCM-952:
--------------------
    Description: 
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}

  was:
mvn scm:check-local-modification

 
{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}


> 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)