Class JavadocLicenseMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.github.robtimus.maven.plugins.buildhelper.AbstractLicenseMojo
-
- com.github.robtimus.maven.plugins.buildhelper.JavadocLicenseMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="javadoc-license", defaultPhase=PREPARE_PACKAGE, requiresProject=true, threadSafe=true) public class JavadocLicenseMojo extends AbstractLicenseMojoAdd a license file to created Javadoc JAR files.License files are first resolved relative to the current directory. If it cannot be found there, parent directories are checked until one of the following occurs:
- The parent directory is not part of the Maven project (does not contain a
pom.xmlfile), and is not the root directory of the current Git project. - The maximum number of parent directories has been reached.
-
-
Field Summary
-
Fields inherited from class com.github.robtimus.maven.plugins.buildhelper.AbstractLicenseMojo
licenseFilename, project, skipLicense
-
-
Constructor Summary
Constructors Constructor Description JavadocLicenseMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcopyLicenseFile(java.nio.file.Path licenseFile, java.nio.file.Path buildDir)(package private) voidprocessLicenseFile(java.nio.file.Path licenseFile)-
Methods inherited from class com.github.robtimus.maven.plugins.buildhelper.AbstractLicenseMojo
execute, findLicenseFile
-
-
-
-
Method Detail
-
processLicenseFile
void processLicenseFile(java.nio.file.Path licenseFile) throws org.apache.maven.plugin.MojoExecutionException- Specified by:
processLicenseFilein classAbstractLicenseMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
copyLicenseFile
void copyLicenseFile(java.nio.file.Path licenseFile, java.nio.file.Path buildDir) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-