Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "No plugin found for prefix 'liquibase' in the current project and in the plugin groups"

I am new to Liquibase. I have already included maven plugins and liquibase to my pom.xml however when i update liquibase using mvn liquibase:update I get this error:

No plugin found for prefix 'liquibase' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] 

How can I fix this error so that when I type mvn liquibase:update it will run properly

Here are some of the dependencies that are in my pom.xml related to 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>
like image 464
Euph Avatar asked Oct 24 '19 05:10

Euph


People also ask

What is plugin prefix?

Each plugin in this list contains a prefix element denoting the plugin's command-line prefix, and an artifactId element, which provides the other side of the prefix mapping and provides enough information to lookup and use the plugin.

Why are Maven plugins used?

"Maven" is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on.


1 Answers

I don't think the problem is with liquibase plugin itself. It's more about maven prefixes.

Try executing: mvn org.liquibase:liquibase-maven-plugin:update

Also, check out this question.

like image 80
htshame Avatar answered Nov 15 '22 02:11

htshame