Class ExplodedLiteMojo

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

@Mojo(name="exploded-lite", requiresDependencyCollection=TEST, requiresDependencyResolution=TEST) public class ExplodedLiteMojo extends AbstractLuteceWebappMojo
Mojo to explode a web application for Lutece projects while excluding Java class files and JAR dependencies.

This plugin is designed to be used for Lutece core, plugin, and site projects. This Mojo extracts a web application for Lutece projects while excluding Java class files and JAR dependencies. It focuses on unpacking the structure of the web application without including the compiled binaries, ensuring a cleaner, lightweight setup, primarily useful for development purposes. This goal supports the following configuration parameters:

  • outputDirectory: The directory where the generated WAR file will be placed.
  • includeDependencies: Whether to include project dependencies in the WAR file.
  • localConfDirectory: The directory containing the local, user-specific configuration files.
  • defaultConfDirectory: The directory containing the default configuration files.
  • sqlDirectory: The directory containing the database sql script.
  • siteDirectory: The directory containing the default user documentation
  • Constructor Details

    • ExplodedLiteMojo

      public ExplodedLiteMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Executes the goal.

      This method proceeds to execute the project by calling executeProject().

      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the packaging type is not supported.
      org.apache.maven.plugin.MojoFailureException - if an error occurs during execution.
    • addToExplodedWebapp

      protected void addToExplodedWebapp(org.apache.maven.artifact.Artifact luteceArtifact, File webappDir) throws org.apache.maven.plugin.MojoExecutionException
      Adds a Lutece artifact to the exploded web application directory.
      Overrides:
      addToExplodedWebapp in class AbstractLuteceWebappMojo
      Parameters:
      luteceArtifact - the artifact to be added.
      webappDir - the directory of the exploded web application.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an error occurs while resolving or unpacking the artifact.