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 Details

    • licensesInputFile

      @Parameter(property="license.licensesInputFile") protected File licensesInputFile
      The file whose XML content will be used as a base for adding versions. Defaults to AbstractLicensesXmlMojo.licensesOutputFile
      Since:
      1.19
  • Constructor Details

    • LicensesXmlInsertVersionsMojo

      public LicensesXmlInsertVersionsMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getAutodetectEolFiles

      protected Path[] getAutodetectEolFiles()
      Overrides:
      getAutodetectEolFiles in class AbstractLicensesXmlMojo