@Mojo(name="groovydoc-jar",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE,
threadSafe=true)
public class GroovyDocJarMojo
extends GroovyDocMojo
invokeGroovyDoc is false).| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.archiver.MavenArchiveConfiguration |
archive
The archive configuration to use.
|
protected boolean |
attach
Specifies whether to attach the generated artifact to the project helper.
|
protected File |
defaultManifestFile
Path to the default MANIFEST file to use.
|
protected String |
finalName
Specifies the filename that will be used for the generated jar file.
|
protected boolean |
invokeGroovyDoc
Whether to invoke the
groovydoc goal before creating jar. |
protected org.codehaus.plexus.archiver.jar.JarArchiver |
jarArchiver
The Jar archiver.
|
protected String |
jarOutputDirectory
Specifies the directory where the generated jar file will be put.
|
groovyDocJavaSources, groovyDocOutputDirectory, sourcesattachGroovyDocAnnotation, classpathResourceManagerClass, defaultClassTemplates, defaultDocTemplates, defaultPackageTemplates, displayAuthor, docTitle, fileOutputToolClass, footer, GROOVY_1_5_2, GROOVY_1_5_8, GROOVY_1_6_0_RC1, GROOVY_1_6_0_RC2, GROOVY_3_0_0_ALPHA_4, GROOVY_4_0_27, GROOVY_5_0_0_ALPHA_1, GROOVY_5_0_0_BETA_1, groovyDocToolClass, header, includeClasspath, languageLevel, linkArgumentClass, links, outputToolClass, overviewFile, resourceManagerClass, scope, skipGroovyDoc, stylesheetEncoding, stylesheetFile, windowTitleMAIN, TESTclassWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_1_8, JAVA_12, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session| Constructor and Description |
|---|
GroovyDocJarMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this mojo.
|
protected File |
generateArchive(File groovydocFiles,
String jarFileName)
Method that creates the jar file
|
copyStylesheet, createGroovyDocTool, doGroovyDocGeneration, generateGroovyDoc, setupGroovyDocSources, setupLinks, setupPropertiesgetFiles, getFilesets, getTestFiles, getTestFilesetsgetJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWrangler@Parameter(property="project.build.finalName") protected String finalName
-groovydoc
will be appended to the file name.@Parameter(property="project.build.directory") protected String jarOutputDirectory
@Component(role=org.codehaus.plexus.archiver.Archiver.class,
hint="jar")
protected org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
@Parameter protected final org.apache.maven.archiver.MavenArchiveConfiguration archive
@Parameter(property="attach",
defaultValue="true")
protected boolean attach
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/MANIFEST.MF",
required=true,
readonly=true)
protected File defaultManifestFile
useDefaultManifestFile is set to true.@Parameter(defaultValue="true") protected boolean invokeGroovyDoc
groovydoc goal before creating jar.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class GroovyDocMojoorg.apache.maven.plugin.MojoExecutionException - If an unexpected problem occurs (causes a "BUILD ERROR" message to be displayed)protected File generateArchive(File groovydocFiles, String jarFileName) throws org.codehaus.plexus.archiver.ArchiverException, IOException
groovydocFiles - the directory where the generated jar file will be putjarFileName - the filename of the generated jar fileorg.codehaus.plexus.archiver.ArchiverException - When an issue occurs preventing Maven Archiver from creating the jar fileIOException - When an IO issue occurs preventing Maven Archiver from creating the jar fileCopyright © 2011–2025. All rights reserved.