org.liquibase.maven.plugins.LiquibaseDBDocMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-maven-plugin Show documentation
Show all versions of liquibase-maven-plugin Show documentation
A Maven plugin wraps up some of the functionality of Liquibase
The newest version!
package org.liquibase.maven.plugins;
import liquibase.Liquibase;
import liquibase.exception.LiquibaseException;
import org.liquibase.maven.property.PropertyElement;
/**
* Generates dbDocs against the database.
*
* @author Ryan Connolly
* @goal dbDoc
*/
public class LiquibaseDBDocMojo extends AbstractLiquibaseChangeLogMojo {
/**
* @parameter
* property="liquibase.outputDirectory"
* default-value="${project.build.directory}/liquibase/dbDoc"
*/
@PropertyElement
private String outputDirectory;
@Override
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
{
liquibase.generateDocumentation(outputDirectory);
}
public String getOutputDirectory()
{
return outputDirectory;
}
}