Skip to content

Commit

Permalink
Merge pull request #67 from 1000kit/feat/fix-db-check
Browse files Browse the repository at this point in the history
fix: db check maven session
  • Loading branch information
tkit-dev authored Apr 12, 2024
2 parents aae7d09 + 4d33e66 commit 47eb8a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/tkit/maven/liquibase/CheckChangesMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import liquibase.changelog.ChangeSet;
import liquibase.exception.LiquibaseException;
import liquibase.serializer.core.xml.XMLChangeLogSerializer;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
Expand Down Expand Up @@ -60,6 +62,12 @@ public class CheckChangesMojo extends AbstractLiquibaseChangeLogMojo {
@Parameter(readonly = true, required = true, defaultValue = "${project}")
private MavenProject currentProject;

@Parameter(readonly = true, required = true, defaultValue = "${session}")
protected MavenSession currentSession;

@Parameter(readonly = true, required = true, defaultValue = "${mojoExecution}")
protected MojoExecution currentMojoExecution;

/**
* Log line.
*/
Expand All @@ -80,6 +88,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

changeLogFile = liquibaseChangeLogFile;
project = currentProject;
session = currentSession;
mojoExecution = currentMojoExecution;
verbose = liquibaseVerbose;

username = "quarkus";
Expand Down

0 comments on commit 47eb8a8

Please sign in to comment.