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
The SchemaSpy Maven plugin report.
This plugin is designed to generate SchemaSpy report for a Maven website. 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.
- Author:
- John Smart, mprins
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether to create the report only on the execution root of a multi-module project.protected boolean
Fields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
executeReport
(Locale locale) Generate the Schemaspy report.getDescription
(Locale locale) boolean
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, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, setReportOutputDirectory
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
vizjs
-
runOnExecutionRoot
@Parameter(property="runOnExecutionRoot", defaultValue="false") protected boolean runOnExecutionRootWhether to create the report only on the execution root of a multi-module project.- Since:
- 5.0.4
-
-
Constructor Details
-
SchemaSpyReport
public SchemaSpyReport()
-
-
Method Details
-
setSchemaAnalyzer
-
executeReport
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
-
getDescription
-
getName
-
getOutputName
-
getOutputPath
-
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
-