简体   繁体   English

Liquibase的Maven执行

[英]Maven Execution of Liquibase

I am executing liquibase through Maven like mvn liquibase:update and as you can see I am getting output in the console我正在通过 Maven 执行 liquibase,例如mvn liquibase:update ,如您所见,我正在控制台中获取输出

[INFO] Scanning for projects... 
[INFO]
[INFO] -------< LiquibaseInstanaExperiment:LiquibaseInstanaExperiment >--------
[INFO] Building LiquibaseInstanaExperiment 0.0.1-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- liquibase-maven-plugin:3.3.2:update (default-cli) @ LiquibaseInstanaExperiment ---
[INFO] ------------------------------------------------------------------------
[INFO] Parsing Liquibase Properties File
[INFO]   File: C:\Users\RaghavGupta\Downloads\LiquibaseInstanaExperiment/liquibase.properties
[INFO]   'referencePassword' in properties file is not being used by this task.
[INFO]   'referenceUsername' in properties file is not being used by this task.
[INFO]   'referenceUrl' in properties file is not being used by this task.
[INFO] ------------------------------------------------------------------------
[INFO] Executing on Database: jdbc:postgresql://52.118.184.180:5432/postgres
INFO 5/19/22, 2:27 PM: liquibase: Successfully acquired change log lock
INFO 5/19/22, 2:28 PM: liquibase: Reading from databasechangelog
INFO 5/19/22, 2:28 PM: liquibase: Successfully released change log lock
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.277 s
[INFO] Finished at: 2022-05-19T14:28:12+05:30
[INFO] ------------------------------------------------------------------------

I want this output or system logs to move into a log file.我希望将此输出或系统日志移动到日志文件中。 How do we do that?我们如何做到这一点?

This is done by executing -l,--log-file <arg> to log the file to where all build output will go.这是通过执行-l,--log-file <arg>将文件记录到所有构建输出的位置来完成的。

Example: mvn <your parameters> --log-file log.txt示例: mvn <your parameters> --log-file log.txt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM