Enable to run liquibase on mongodb

I want to poc a liquibase config for a mongodb. my project is in this repo GitHub - aayoubb/LiquibaseTest
when I run the command
liquibase update

I got a mongodb error
Error parsing command line: unrecognised option '--file'

Below the full stack



[2023-07-15 20:35:14] INFOS [liquibase.ui] ####################################################
##   _     _             _ _                      ##
##  | |   (_)           (_) |                     ##
##  | |    _  __ _ _   _ _| |__   __ _ ___  ___   ##
##  | |   | |/ _` | | | | | '_ \ / _` / __|/ _ \  ##
##  | |___| | (_| | |_| | | |_) | (_| \__ \  __/  ##
##  \_____/_|\__, |\__,_|_|_.__/ \__,_|___/\___|  ##
##              | |                               ##
##              |_|                               ##
##                                                ##
##  Get documentation at docs.liquibase.com       ##
##  Get certified courses at learn.liquibase.com  ##
##  Free schema change activity reports at        ##
##      https://hub.liquibase.com                 ##
##                                                ##
####################################################
Starting Liquibase at 20:35:14 (version 4.21.0 #9008 built at 2023-04-12 14:33+0000)
Liquibase Version: 4.21.0
[2023-07-15 20:35:14] INFOS [liquibase.ui] Liquibase Version: 4.21.0
[2023-07-15 20:35:15] INFOS [liquibase.license] Successfully installed license from Base64 string starting with 'ABwwGgQUDd' (File exists at path liquibase.properties 'liquibaseProLicenseKey').

Liquibase Pro 4.21.0 by Liquibase licensed to gerger until jeu. juil. 27 06:59:59 CEST 2023
WARNING!  Your license will expire in 12 days!
To renew Liquibase Pro or Liquibase Labs please contact sales@liquibase.com or go to https://www.liquibase.com/pricing
[2023-07-15 20:35:15] INFOS [liquibase.ui] Liquibase Pro 4.21.0 by Liquibase licensed to gerger until jeu. juil. 27 06:59:59 CEST 2023
WARNING!  Your license will expire in 12 days!
To renew Liquibase Pro or Liquibase Labs please contact sales@liquibase.com or go to https://www.liquibase.com/pricing
[2023-07-15 20:35:15] INFOS [liquibase.integration] Starting command execution.
[2023-07-15 20:35:15] INFOS [liquibase.ext] Adjusting database Lock Collection with name: pao.DATABASECHANGELOGLOCK
[2023-07-15 20:35:15] INFOS [liquibase.ext] Adjusted database Lock Collection with name: pao.DATABASECHANGELOGLOCK
[2023-07-15 20:35:15] INFOS [liquibase.ext] Lock Database
[2023-07-15 20:35:15] INFOS [liquibase.ext] Successfully Acquired Change Log Lock
[2023-07-15 20:35:15] INFOS [liquibase.servicelocator] Cannot load service: liquibase.parser.ChangeLogParser: liquibase.nosql.parser.json.JsonNoSqlChangeLogParser Unable to get public no-arg constructor
[2023-07-15 20:35:15] INFOS [liquibase.ext] Adjusting database history Collection with name: pao.DATABASECHANGELOG
[2023-07-15 20:35:15] INFOS [liquibase.ext] Adjusted database history Collection with name: pao.DATABASECHANGELOG
[2023-07-15 20:35:15] INFOS [liquibase.command] Using deploymentId: 9446115514
Running Changeset: db.changelog-1.0.xml::orders::aak
[2023-07-15 20:35:15] INFOS [liquibase.ui] Running Changeset: db.changelog-1.0.xml::orders::aak
[2023-07-15 20:35:15] INFOS [liquibase.executor] Executing with the 'mongosh' executor
[2023-07-15 20:35:15] INFOS [liquibase.change] No configuration file named 'liquibase.mongosh.conf' found.
[2023-07-15 20:35:15] INFOS [liquibase.change] Executing 'mongosh' with a keep temp file value of 'false'
[2023-07-15 20:35:15] INFOS [liquibase.change] mongosh command:
mongosh.exe --version
[2023-07-15 20:35:15] INFOS [liquibase.change] MongoDB shell version v4.4.12
Build Info: {
    "version": "4.4.12",
    "gitVersion": "51475a8c4d9856eb1461137e7539a0a763cc85dc",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "windows",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

[2023-07-15 20:35:15] INFOS [liquibase.executor] Successfully validated mongosh
[2023-07-15 20:35:15] INFOS [liquibase.change] No configuration file named 'liquibase.mongosh.conf' found.
[2023-07-15 20:35:15] INFOS [liquibase.change] Executing 'mongosh' with a keep temp file value of 'false'
[2023-07-15 20:35:15] INFOS [liquibase.change] Creating the mongosh run script
[2023-07-15 20:35:15] INFOS [liquibase] Creating temporary .txt file for 'liquibase-.txt-orders-aak-'
[2023-07-15 20:35:15] INFOS [liquibase.change] mongosh command:
mongosh.exe mongodb://localhost:27017/pao --file C:\Temp\liquibase-.txt-orders-aak-14355536859382354111.txt
[2023-07-15 20:35:15] INFOS [liquibase.change] Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

[2023-07-15 20:35:15] AVERTISSEMENT [liquibase.executor]
Changeset 'orders' by 'aak' failed to deploy with 'mongosh'. Please check mongosh logs
[2023-07-15 20:35:15] GRAVE [liquibase.changelog] ChangeSet db.changelog-1.0.xml::orders::aak encountered an exception.
[2023-07-15 20:35:15] INFOS [liquibase.command] Update command encountered an exception.
[2023-07-15 20:35:15] INFOS [liquibase.ext] Release Database Lock
[2023-07-15 20:35:15] INFOS [liquibase.ext] Successfully released change log lock
[2023-07-15 20:35:15] AVERTISSEMENT [liquibase.configuration] Potentially ignored key(s) in file exists at path liquibase.properties
 - 'changeLogFile'
 - 'url'
[2023-07-15 20:35:15] INFOS [liquibase.command] Command execution complete
[2023-07-15 20:35:15] INFOS [liquibase.ext] Release Database Lock
[2023-07-15 20:35:15] INFOS [liquibase.ext] Successfully released change log lock
[2023-07-15 20:35:15] INFOS [liquibase.command] Command execution complete
[2023-07-15 20:35:15] GRAVE [liquibase.integration] Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information
liquibase.exception.CommandExecutionException: liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at liquibase.command.CommandScope.execute(CommandScope.java:235)
        at com.datical.liquibase.ext.command.ProUpdateCommandStep.run(Unknown Source)
        at liquibase.command.CommandScope.execute(CommandScope.java:212)
        at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:55)
        at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:24)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at liquibase.integration.commandline.LiquibaseCommandLine.lambda$null$2(LiquibaseCommandLine.java:383)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:179)
        at liquibase.integration.commandline.LiquibaseCommandLine.lambda$execute$3(LiquibaseCommandLine.java:358)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:179)
        at liquibase.integration.commandline.LiquibaseCommandLine.execute(LiquibaseCommandLine.java:356)
        at liquibase.integration.commandline.LiquibaseCommandLine.main(LiquibaseCommandLine.java:93)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at liquibase.integration.commandline.LiquibaseLauncher.main(LiquibaseLauncher.java:107)
Caused by: liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:123)
        at liquibase.command.core.AbstractUpdateCommandStep.lambda$run$0(AbstractUpdateCommandStep.java:102)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.command.core.AbstractUpdateCommandStep.run(AbstractUpdateCommandStep.java:99)
        ... 25 more
Caused by: liquibase.exception.MigrationFailedException: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at liquibase.changelog.ChangeSet.execute(ChangeSet.java:761)
        at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:61)
        at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:111)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:111)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.Scope.child(Scope.java:260)
        at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:94)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.Scope.child(Scope.java:260)
        at liquibase.Scope.child(Scope.java:264)
        at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:68)
        ... 31 more
Caused by: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at com.liquibase.ext.tools.MongoshExecutor.execute(MongoshExecutor.java:119)
        at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1287)
        at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1269)
        at liquibase.changelog.ChangeSet.execute(ChangeSet.java:718)
        ... 51 more
Caused by: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at com.liquibase.ext.tools.MongoshRunner.executeCommand(MongoshRunner.java:211)
        at com.liquibase.ext.tools.MongoshExecutor.execute(MongoshExecutor.java:113)
        ... 54 more
Caused by: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at com.liquibase.ext.tools.MongoshRunner.processResult(MongoshRunner.java:153)
        at liquibase.change.core.ExecuteShellCommandChange.executeCommand(ExecuteShellCommandChange.java:219)
        at com.liquibase.ext.tools.MongoshRunner.executeCommand(MongoshRunner.java:196)
        ... 55 more


Unexpected error running Liquibase: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

liquibase.exception.CommandExecutionException: liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at liquibase.command.CommandScope.execute(CommandScope.java:235)
        at com.datical.liquibase.ext.command.ProUpdateCommandStep.run(Unknown Source)
        at liquibase.command.CommandScope.execute(CommandScope.java:212)
        at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:55)
        at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:24)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at liquibase.integration.commandline.LiquibaseCommandLine.lambda$null$2(LiquibaseCommandLine.java:383)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:179)
        at liquibase.integration.commandline.LiquibaseCommandLine.lambda$execute$3(LiquibaseCommandLine.java:358)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:179)
        at liquibase.integration.commandline.LiquibaseCommandLine.execute(LiquibaseCommandLine.java:356)
        at liquibase.integration.commandline.LiquibaseCommandLine.main(LiquibaseCommandLine.java:93)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at liquibase.integration.commandline.LiquibaseLauncher.main(LiquibaseLauncher.java:107)
Caused by: liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:123)
        at liquibase.command.core.AbstractUpdateCommandStep.lambda$run$0(AbstractUpdateCommandStep.java:102)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.command.core.AbstractUpdateCommandStep.run(AbstractUpdateCommandStep.java:99)
        ... 25 more
Caused by: liquibase.exception.MigrationFailedException: Migration failed for changeset db.changelog-1.0.xml::orders::aak:
     Reason: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at liquibase.changelog.ChangeSet.execute(ChangeSet.java:761)
        at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:61)
        at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:111)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:111)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.Scope.child(Scope.java:260)
        at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:94)
        at liquibase.Scope.lambda$child$0(Scope.java:194)
        at liquibase.Scope.child(Scope.java:203)
        at liquibase.Scope.child(Scope.java:193)
        at liquibase.Scope.child(Scope.java:172)
        at liquibase.Scope.child(Scope.java:260)
        at liquibase.Scope.child(Scope.java:264)
        at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:68)
        ... 31 more
Caused by: liquibase.exception.DatabaseException: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at com.liquibase.ext.tools.MongoshExecutor.execute(MongoshExecutor.java:119)
        at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1287)
        at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1269)
        at liquibase.changelog.ChangeSet.execute(ChangeSet.java:718)
        ... 51 more
Caused by: liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at com.liquibase.ext.tools.MongoshRunner.executeCommand(MongoshRunner.java:211)
        at com.liquibase.ext.tools.MongoshExecutor.execute(MongoshExecutor.java:113)
        ... 54 more
Caused by: liquibase.exception.UnexpectedLiquibaseException: mongosh.exe  returned a code of 2
Error parsing command line: unrecognised option '--file'
try 'mongosh.exe --help' for more information

        at com.liquibase.ext.tools.MongoshRunner.processResult(MongoshRunner.java:153)
        at liquibase.change.core.ExecuteShellCommandChange.executeCommand(ExecuteShellCommandChange.java:219)
        at com.liquibase.ext.tools.MongoshRunner.executeCommand(MongoshRunner.java:196)
        ... 55 more

I want to add Liquibase Development and @tabbyfoo if you have any idea please