maven - liquibase pro 关键问题
问题描述
我获得了 liquibase 试用版密钥,但项目验证失败并显示消息“如果没有有效的 Liquibase Pro 许可证,则不允许更改类型‘pro:createFunction’。”
我试过这样的Maven配置
<configuration>
<changeLogFile>${project.basedir}/src/main/resources/config/liquibase/master.xml</changeLogFile>
<diffChangeLogFile>${project.basedir}/src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://localhost:5432/FreshHipster</url>
<defaultSchemaName></defaultSchemaName>
<username>FreshHipster</username>
<password></password>
<referenceUrl>hibernate:spring:domain.folder?dialect=org.hibernate.dialect.PostgreSQL9Dialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
<verbose>true</verbose>
<logging>debug</logging>
<contexts>!test</contexts>
<liquibaseProLicenseKey>ABwwGg...</liquibaseProLicenseKey>
</configuration>
和这个
<configuration>
<propertyFile>liquibase.properties</propertyFile>
<diffChangeLogFile>${project.basedir}/src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<verbose>true</verbose>
<logging>debug</logging>
<contexts>!test</contexts>
</configuration>
liquibase.properties
(命令“ liquibase status ”在带有文件 liquibase.properties 的文件夹中显示: Liquibase Pro 4.3.1 由 Datical 授权给 Liquibase Pro 评估,直到 2021 年 3 月 24 日 05:00:00 ALMT)
changeLogFile: ${project.basedir}/src/main/resources/config/liquibase/master.xml
url: jdbc:postgresql://localhost:5432/FreshHipster
username: FreshHipster
password:
driver: org.postgresql.driver
referenceUrl: hibernate:spring:domain.folder?dialect=org.hibernate.dialect.PostgreSQL9Dialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
liquibaseProLicenseKey: ABwwG...
解决方案
我错误地启动了弹簧靴。我不得不使用 maven mvn spring-boot:run
推荐阅读
- shell - 如果条件匹配错误为什么要 awk
- php - Laravel 5.7:数据库查询不返回值
- c# - uwp:如何在表单控件中编辑数据网格项
- django - 如何在 django 中启动同一本地 IP 地址上的所有 docker 容器?
- shell - 错误:[参数太多 | 外壳脚本
- java - 您如何更改屏幕,以便当您单击屏幕上的任意位置时,您可以从问题转到答案?
- javascript - ExpressJS 渲染子域的问题
- c++ - 访问指针数组中的子类方法
- javascript - 带有变量的控制台日志,但不显示数组列表
- android - 除非插入 USB 集线器,否则 ADB 将无法识别设备