Class PrepareFrontendMojo

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

    @Mojo(name="prepare-frontend",
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
          defaultPhase=PROCESS_RESOURCES)
    public class PrepareFrontendMojo
    extends FlowModeAbstractMojo
    This goal checks that node and npm tools are installed and creates or updates `package.json` and `webpack.config.json` files.

    Copies frontend resources available inside `.jar` dependencies to `node_modules` when building a jar package.

    Since:
    2.0
    • Constructor Detail

      • PrepareFrontendMojo

        public PrepareFrontendMojo()
    • Method Detail

      • 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