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

  1. Help
    Name: Apache Maven JAR Plugin

    Description: Builds a Java Archive (JAR) file from the compiled project classes and resources.

    Plugin coordinates:
    Group Id: org.apache.maven.plugins
    Artifact Id: maven-jar-plugin
    Version: 3.1.2

    Goal Prefix: jar

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

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

    The jar plugin has the following goals:
    • help: Displays help information on maven-jar-plugin.

    • jar: Builds a JAR from the current project.

    • test-jar: Builds a JAR of the test classes for the current project.
  2. Example: Using jar goals in the project POM file
© 2020  mtitek