Skip to content

Commit

Permalink
Merge pull request #66 from 1000kit/feat/fix-maven-plugin
Browse files Browse the repository at this point in the history
feat: fix update maven plugin
  • Loading branch information
tkit-dev authored Apr 12, 2024
2 parents cbb9bf5 + a78ec20 commit aae7d09
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/tkit/maven/liquibase/LiquibaseDiffMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import liquibase.LabelExpression;
import liquibase.Liquibase;
import liquibase.exception.LiquibaseException;
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 @@ -101,6 +103,13 @@ public class LiquibaseDiffMojo extends LiquibaseDatabaseDiff {
@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 @@ -116,6 +125,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
diffChangeLogFile = outputFile;
changeLogFile = liquibaseChangeLogFile;
project = currentProject;
session = currentSession;
mojoExecution = currentMojoExecution;

getLog().info(LOG_LINE);
getLog().info("Start docker containers.");
Expand Down

0 comments on commit aae7d09

Please sign in to comment.