Class Assembler

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

@Mojo(name="dist", defaultPhase=INSTALL, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public final class Assembler extends org.apache.maven.plugin.AbstractMojo implements FilenameFilter
Creates a ZIP file containing the Apache SIS binary distribution. The created file contains:
  • the content of the application/sis-javafx/src/main/artifact directory;
  • the JAR files of all modules and their dependencies, without their native resources;
  • the native resources in a separated lib/ directory.
This MOJO can be invoked from the command line in the sis-javafx module as below:
mvn package org.apache.sis.core:sis-build-helper:dist

Limitation

The current implementation uses some hard-coded paths and filenames. See the Distribution file section in Build from source page for more information.

Since:
0.4
Version:
1.0
Author:
Martin Desruisseaux (Geomatys)
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Invoked by reflection for creating the MOJO.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File directory, String filename)
    The filter to use for selecting the files to be included in the ZIP file.
    void
    Creates the distribution file.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Assembler

      public Assembler()
      Invoked by reflection for creating the MOJO.
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Creates the distribution file.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the plugin execution failed.
    • accept

      public boolean accept(File directory, String filename)
      The filter to use for selecting the files to be included in the ZIP file.
      Specified by:
      accept in interface FilenameFilter
      Parameters:
      directory - the directory.
      filename - the filename.
      Returns:
      true if the given file should be included in the ZIP file.