mtitek
  • Cloud
  • Big Data
  • CI
  • Install
  • Samples
  • Java
  • Ubuntu
  • Maven
  • Archive
Maven | maven-assembly-plugin
  1. Help
  2. Example: Using assembly goals in the project POM file

  1. Help
    Name: Apache Maven Assembly Plugin

    Description: A Maven plugin to create archives of your project's sources, classes, dependencies etc. from flexible assembly descriptors.

    Plugin coordinates:
    Group Id: org.apache.maven.plugins
    Artifact Id: maven-assembly-plugin
    Version: 3.1.1

    Goal Prefix: assembly

    The goal help:help gives general information about the assembly plugin and lists its goals:

    The goal help:describe gives detailed information about the assembly and lists its goals:

    The assembly plugin has the following goals:
    • help: Display help information on maven-assembly-plugin.

    • assembly: Assemble an application bundle or distribution using an assembly descriptor from the command line.

    • single: Assemble an application bundle or distribution from an assembly descriptor.

    • directory: Assemble an application bundle or distribution using an assembly descriptor from the command line. This goal differs from assembly:assembly in that it ignores the <formats/> section of the assembly descriptor, and forces the assembly to be created as a directory in the project's build-output directory (usually ./target).

    • directory-single: Like the assembly:attached goal, assemble an application bundle or distribution from an assembly descriptor. This goal differs from assembly:single in that it ignores the <formats/> section of the assembly descriptor, and forces the assembly to be created as a directory in the project''s build-output directory (usually ./target).
  2. Example: Using assembly goals in the project POM file

    The "assembly.xml" file (example):

© 2020  mtitek