rar:rar

Builds J2EE Resource Adapter Archive (RAR) files.

Mojo Attributes:

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

Required Parameters

Name Type Description
finalName String The name of the RAR file to generate.
outputDirectory String The directory for the generated RAR.
rarSourceDirectory File Single directory for extra files to include in the RAR.
workDirectory String Directory that resources are copied to during the build.

Optional Parameters

Name Type Description
archive MavenArchiveConfiguration The maven archiver to use.
includeJar Boolean Specify if the generated jar file of this project should be included in the rar file ; default is true.
manifestFile File The location of the manifest file to be used within the rar file.
raXmlFile File The location of the ra.xml file to be used within the rar file.

Parameter Details

archive The maven archiver to use.
  • Type: org.apache.maven.archiver.MavenArchiveConfiguration
  • Required: No

finalName The name of the RAR file to generate.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.finalName}

includeJar Specify if the generated jar file of this project should be included in the rar file ; default is true.
  • Type: java.lang.Boolean
  • Required: No

manifestFile The location of the manifest file to be used within the rar file.
  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}/src/main/rar/META-INF/MANIFEST.MF

outputDirectory The directory for the generated RAR.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.directory}

raXmlFile The location of the ra.xml file to be used within the rar file.
  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}/src/main/rar/META-INF/ra.xml

rarSourceDirectory Single directory for extra files to include in the RAR.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}/src/main/rar

workDirectory Directory that resources are copied to during the build.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.directory}/${project.build.finalName}