sar:sar

Creates a Service Archive.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: runtime
  • Automatically executes within the lifecycle phase: package

Required Parameters

Name Type Description
classesDir File Directory containing the classes (usually target/classes).
targetDir File Directory where the sar file should be written to.
targetFile String Name of the generated SAR (without the ".sar" extension).

Optional Parameters

Name Type Description
archiveConfig MavenArchiveConfiguration Archive Configuration.
classifier String Classifier to add to the artifact generated.
helper MavenProjectHelper The Project Helper.

Parameter Details

archiveConfig Archive Configuration.
  • Type: org.apache.maven.archiver.MavenArchiveConfiguration
  • Required: No

classesDir Directory containing the classes (usually target/classes).
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.outputDirectory}

classifier Classifier to add to the artifact generated.
  • Type: java.lang.String
  • Required: No

helper The Project Helper.
  • Type: org.apache.maven.project.MavenProjectHelper
  • Required: No

targetDir Directory where the sar file should be written to.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}

targetFile Name of the generated SAR (without the ".sar" extension).
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.finalName}