【发布时间】:2020-02-20 09:23:28
【问题描述】:
我是 Liquibase 的新手。我已经在我的 pom.xml 中包含了 maven 插件和 liquibase 但是当我使用 mvn liquibase:update 更新 liquibase 时,我收到了这个错误:
No plugin found for prefix 'liquibase' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
如何解决此错误,以便在我输入 mvn liquibase:update 时它可以正常运行
这是我的pom.xml 中与 liquibase 相关的一些依赖项
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<build>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<propertyFile>src/main/resources/liquibase.properties</propertyFile>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
</configuration>
</plugin>
</build>
【问题讨论】:
-
你能和我们分享你的 pom.xml 吗?
-
我已经编辑了我的帖子并在我的 pom.xml 中包含了一些插件
标签: java spring-boot maven liquibase