Class WarMojo

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

@Mojo(name="war", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class WarMojo extends AbstractLuteceWebappMojo
Mojo for building a WAR (Web Application Archive) file for lutece applications. This goal compiles the project's source code, packages it along with its resources, and creates a WAR file suitable for deployment on a web server.

This goal supports the following configuration parameters:

  • outputDirectory: The directory where the generated WAR file will be placed.
  • finalName: The final name of the WAR file, without extension.
  • 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

    • WarMojo

      public WarMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Executes the mojo on the current project.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an error occurred while building the artifact.
      org.apache.maven.plugin.MojoFailureException