Fork me on GitHub

archetype:jar

Full name:

org.apache.maven.plugins:maven-archetype-plugin:3.3.0:jar

Description:

Build a JAR from the current Archetype project.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Binds by default to the lifecycle phase: package.

Required Parameters

Name Type Since Description
<archetypeDirectory> File - Directory containing the classes.
Default: ${project.build.outputDirectory}
<finalName> String - Name of the generated JAR.
Default: ${project.build.finalName}
Alias: jarName
<outputDirectory> File - Directory containing the generated JAR.
Default: ${project.build.directory}

Optional Parameters

Name Type Since Description
<archive> MavenArchiveConfiguration 3.2.0 The archive configuration to use. See Maven Archiver Reference.
<outputTimestamp> String 3.2.0 Timestamp for reproducible output archive entries, either formatted as ISO 8601 yyyy-MM-dd'T'HH:mm:ssXXX or as an int representing seconds since the epoch (like SOURCE_DATE_EPOCH).
Default: ${project.build.outputTimestamp}
<useDefaultExcludes> boolean - Exclude some files from the archetype like .gitignore.
Default: true

Parameter Details

<archetypeDirectory>

Directory containing the classes.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.outputDirectory}

<archive>

The archive configuration to use. See Maven Archiver Reference.
  • Type: org.apache.maven.archiver.MavenArchiveConfiguration
  • Since: 3.2.0
  • Required: No

<finalName>

Name of the generated JAR.
  • Type: java.lang.String
  • Required: Yes
  • Default: ${project.build.finalName}
  • Alias: jarName

<outputDirectory>

Directory containing the generated JAR.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}

<outputTimestamp>

Timestamp for reproducible output archive entries, either formatted as ISO 8601 yyyy-MM-dd'T'HH:mm:ssXXX or as an int representing seconds since the epoch (like SOURCE_DATE_EPOCH).
  • Type: java.lang.String
  • Since: 3.2.0
  • Required: No
  • Default: ${project.build.outputTimestamp}

<useDefaultExcludes>

Exclude some files from the archetype like .gitignore.
  • Type: boolean
  • Required: No
  • Default: true