Fork me on GitHub

archetype:jar

Full name:

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

Description:

Build a JAR from the current Archetype project.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: package.

Required Parameters

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

Parameter Details

archetypeDirectory:

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

finalName:

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

outputDirectory:

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