Package org.apache.sis.internal.maven
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/artifactdirectory; - the JAR files of all modules and their dependencies, without their native resources;
- the native resources in a separated
lib/directory.
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 -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
Assembler
public Assembler()Invoked by reflection for creating the MOJO.
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionCreates the distribution file.- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if the plugin execution failed.
-
accept
The filter to use for selecting the files to be included in the ZIP file.- Specified by:
acceptin interfaceFilenameFilter- Parameters:
directory- the directory.filename- the filename.- Returns:
trueif the given file should be included in the ZIP file.
-