Package com.github.plantuml.maven
Class PlantUMLMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.plantuml.maven.PlantUMLMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(defaultPhase=GENERATE_RESOURCES,
name="generate")
public final class PlantUMLMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
Fields Modifier and Type Field Description protected StringcharsetCharset used during generation.protected StringconfigExternal configuration file location.protected StringformatSpecify output format.protected StringgraphvizDotFully qualified path to Graphviz home directory.protected net.sourceforge.plantuml.Optionoptionprotected FileoutputDirectoryDirectory where generated images are generated.protected booleanoutputInSourceDirectoryWhether or not to generate images in same directory as the source file.protected booleanoverwriteSpecify to overwrite any output file, also if the target file is newer as the input file.protected org.apache.maven.model.FileSetsourceFilesFileset to search plantuml diagrams in.protected StringtruncatePatternTruncate the ouput folder.protected booleanverboseWether or not to output details during generation.protected booleanwithMetadataSpecify to include metadata in the output files. -
Constructor Summary
Constructors Constructor Description PlantUMLMojo() -
Method Summary
Modifier and Type Method Description voidexecute()protected StringgetCommaSeparatedList(List<String> list)protected net.sourceforge.plantuml.FileFormatOptiongetFileFormatOption()protected voidsetFormat(String format)
-
Field Details
-
option
protected final net.sourceforge.plantuml.Option option -
truncatePattern
Truncate the ouput folder.- Since:
- 1.2
-
sourceFiles
@Parameter(property="plantuml.sourceFiles", required=true) protected org.apache.maven.model.FileSet sourceFilesFileset to search plantuml diagrams in.- Since:
- 7232
-
outputDirectory
@Parameter(property="plantuml.outputDirectory", defaultValue="${basedir}/target/plantuml", required=true) protected File outputDirectoryDirectory where generated images are generated. -
outputInSourceDirectory
@Parameter(property="plantuml.outputInSourceDirectory", defaultValue="false") protected boolean outputInSourceDirectoryWhether or not to generate images in same directory as the source file. This is useful for using PlantUML diagrams in Javadoc, as described here: http://plantuml. sourceforge.net/javadoc.html.If this is set to true then outputDirectory is ignored.
-
charset
Charset used during generation. -
config
External configuration file location. -
format
Specify output format. Supported values: xmi, xmi:argo, xmi:start, eps, pdf, eps:txt, svg, png, dot, txt and utxt. -
graphvizDot
Fully qualified path to Graphviz home directory. -
verbose
@Parameter(property="plantuml.verbose", defaultValue="false") protected boolean verboseWether or not to output details during generation. -
withMetadata
@Parameter(property="plantuml.withMetadata") protected boolean withMetadataSpecify to include metadata in the output files.- Since:
- 1.3
-
overwrite
@Parameter(property="plantuml.overwrite") protected boolean overwriteSpecify to overwrite any output file, also if the target file is newer as the input file.- Since:
- 1.3
-
-
Constructor Details
-
PlantUMLMojo
public PlantUMLMojo()
-
-
Method Details
-
setFormat
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getCommaSeparatedList
-
getFileFormatOption
protected net.sourceforge.plantuml.FileFormatOption getFileFormatOption()
-