Class ExplodedWebappMojo

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

@Mojo(name="exploded-webapp", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class ExplodedWebappMojo extends AbstractLuteceWebappMojo
Explodes a webapp for a Lutece plugin or site project.
Note that the Lutece dependencies (core and plugins) will only be updated the first time the exploded webapp is created. Subsequent calls to this goal will only update the project's specific files :
  • for a plugin project : the plugin-specific webapp elements and classes.
  • for a site project : the site-specific webapp elements.
If you wish to force webapp re-creation (for instance, if you changed the version of a dependency), call the clean phase before this goal. 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

    • ExplodedWebappMojo

      public ExplodedWebappMojo()
  • 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 the project is not supported.
      org.apache.maven.plugin.MojoFailureException - if an error occurred while exploding the webapp.