Package org.codehaus.mojo.license
Class LicensesXmlInsertVersionsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.license.AbstractLicensesXmlMojo
org.codehaus.mojo.license.LicensesXmlInsertVersionsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="licenses-xml-insert-versions",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE)
public class LicensesXmlInsertVersionsMojo
extends AbstractLicensesXmlMojo
Insert versions into a
licenses.xml file that might have been generated by a *download-licenses mojo
with writeVersions set to false.- Since:
- 1.19
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe file whose XML content will be used as a base for adding versions.Fields inherited from class org.codehaus.mojo.license.AbstractLicensesXmlMojo
licensedArtifactResolver, licensesOutputFile, licensesOutputFileEol, project, remoteRepositoriesFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionLicensesXmlInsertVersionsMojo(LicensedArtifactResolver licensedArtifactResolver) -
Method Summary
Methods inherited from class org.codehaus.mojo.license.AbstractLicensesXmlMojo
getEncoding, writeLicenseSummaryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
licensesInputFile
The file whose XML content will be used as a base for adding versions. Defaults toAbstractLicensesXmlMojo.licensesOutputFile- Since:
- 1.19
-
-
Constructor Details
-
LicensesXmlInsertVersionsMojo
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getAutodetectEolFiles
- Overrides:
getAutodetectEolFilesin classAbstractLicensesXmlMojo
-