java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sevenprinciplesmobility.maven.minify.plugin.MinifyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="minify", defaultPhase=PROCESS_RESOURCES, threadSafe=true) public class MinifyMojo extends org.apache.maven.plugin.AbstractMojo
Goal for combining and minifying CSS and JavaScript files.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Engine used for minification.
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new MinifyMojo object
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executed when the goal is invoked, it will first invoke a parallel lifecycle, ending at the given phase.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MinifyMojo

      public MinifyMojo()
      Creates a new MinifyMojo object
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Executed when the goal is invoked, it will first invoke a parallel lifecycle, ending at the given phase.
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException