Package com.wakaleo.schemaspy
Class SchemaSpyReport
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- com.wakaleo.schemaspy.SchemaSpyReport
-
- All Implemented Interfaces:
ContextEnabled
,Mojo
,MavenMultiPageReport
,MavenReport
@Mojo(name="schemaspy", defaultPhase=SITE) public class SchemaSpyReport extends AbstractMavenReport
The SchemaSpy Maven plugin report.- Author:
- John Smart The SchemaSpy Maven plugin This plugin is designed to generate SchemaSpy report for a Maven web site. SchemaSpy also may need the Graphviz tool (https://www.graphviz.org/) in order to generate graphical representations of the table/view relationships, so this needs to be installed on your machine. The schemaspy goal invokes the SchemaSpy command-line tool. SchemaSpy generates a graphical and HTML report describing a given relational database.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
runOnExecutionRoot
Whether to create the report only on the execution root of a multi-module project.protected boolean
vizjs
-
Fields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputFormat, outputTimestamp, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteTool
-
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
-
-
Constructor Summary
Constructors Constructor Description SchemaSpyReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateReport()
protected void
executeReport(Locale locale)
Generate the Schemaspy report.String
getDescription(Locale locale)
String
getName(Locale locale)
protected String
getOutputDirectory()
String
getOutputName()
protected MavenProject
getProject()
protected org.apache.maven.doxia.siterenderer.Renderer
getSiteRenderer()
boolean
isExternalReport()
Always returntrue
as we're using the report generated by SchemaSpy rather than creating our own report.protected void
setSchemaAnalyzer(MavenSchemaAnalyzer analyzer)
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getXrefLocation, setReportOutputDirectory
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
-
-
-
Field Detail
-
vizjs
@Parameter(property="vizjs", defaultValue="true") protected boolean vizjs
-
runOnExecutionRoot
@Parameter(property="runOnExecutionRoot", defaultValue="false") protected boolean runOnExecutionRoot
Whether to create the report only on the execution root of a multi-module project.- Since:
- 5.0.4
-
-
Method Detail
-
setSchemaAnalyzer
protected void setSchemaAnalyzer(MavenSchemaAnalyzer analyzer)
-
executeReport
protected void executeReport(Locale locale) throws MavenReportException
Generate the Schemaspy report.- Specified by:
executeReport
in classAbstractMavenReport
- Parameters:
locale
- the language of the report - currently ignored.- Throws:
MavenReportException
- if schemaspy crashes
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReport
in interfaceMavenReport
- Overrides:
canGenerateReport
in classAbstractMavenReport
-
getOutputDirectory
protected String getOutputDirectory()
- Overrides:
getOutputDirectory
in classAbstractMavenReport
-
getProject
protected MavenProject getProject()
- Overrides:
getProject
in classAbstractMavenReport
-
getSiteRenderer
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
- Overrides:
getSiteRenderer
in classAbstractMavenReport
-
getOutputName
public String getOutputName()
-
isExternalReport
public boolean isExternalReport()
Always returntrue
as we're using the report generated by SchemaSpy rather than creating our own report.- Specified by:
isExternalReport
in interfaceMavenReport
- Overrides:
isExternalReport
in classAbstractMavenReport
- Returns:
true
-
-