Class MediaTypeMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="generate-mediatype",
          defaultPhase=GENERATE_SOURCES)
    public class MediaTypeMojo
    extends org.apache.maven.plugin.AbstractMojo
    A Maven mojo that generates an enum of pre-configured mime-types, adding any addition ones (with extensions) found in the system's /etc/mime.types file.
    • Constructor Detail

      • MediaTypeMojo

        public MediaTypeMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        The method that runs the MimeTypesMojo.
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException