Class PackageMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
fr.paris.lutece.maven.AbstractLuteceMojo
fr.paris.lutece.maven.PackageMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="package", requiresDependencyResolution=COMPILE) public class PackageMojo extends AbstractLuteceMojo
Packages Lutece core or plugin projects.
This mojo produces two artifacts :
  • a JAR file containing the java classes.
  • a ZIP attachement containing the webapp's files.
Please note that this mojo should be executed on a fresh copy of the sources. If you run it on a Lutece core where lutece:exploded has been invoked, you may end up with unwanted files or directories in the ZIP attachement.
  • Constructor Details

    • PackageMojo

      public PackageMojo()
  • 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 occured while building the artifact.
      org.apache.maven.plugin.MojoFailureException