How to use liquibase snapshot command for Maven project

I am planning to take snapshot of database using snapshot command.
Following are the sample maven project details:

Liquibase.Properties:
driver:org.postgresql.Driver
changeLogFile:db.changelog.xml
url: jdbc:postgresql://localhost:***/postgres
username: postgres
password: ***

POM.XML

4.0.0

liquibasepoc
dbcon
0.0.1-SNAPSHOT




org.liquibase
liquibase-maven-plugin
4.3.2

liquibase.properties
false





update







org.postgresql
postgresql
9.4-1202-jdbc41

                 <dependency><groupId>org.postgresql</groupId><artifactId>postgresql</artifactId><version>42.2.24</version></dependency>
                 <dependency>
        <groupId>mysql</groupId>
	<artifactId>mysql-connector-java</artifactId>
	<version>8.0.12</version>
    </dependency> 
             </dependencies>  
           </plugin>  
       </plugins>  
   </pluginManagement>  

Maven command
liquibase snapshot --snapshotFormat=json --outputFile=test_snapshot.json

error:
Errors:
Unexpected value snapshot: parameters must start with a ‘–’

Here are few thing you could try:

  1. Try using the latest version of Liquibase
  2. Try to remove the --outputFile parameter when running the snapshot command. This will create a json output in the console. This is just a test to see if the rest of the command is working.

I tried running the same command on liquibase version 4.5.0, and it worked as expected.