jboss-packaging:har

Full name:

org.codehaus.mojo:jboss-packaging-maven-plugin:2.2:har

Description:

Builds a deployable JBoss Hibernate Archive. Note that in versions of jboss prior to 4.0.3 the deployment descriptor for a HAR was "hibernate-service.xml". In 4.0.3 this changed to use "jboss-service.xml" similar to the SAR format. In JBoss 5 and above, the HAR deployment descriptor can be any file with a name that matches the pattern "*-hibernate.xml". If the parameter "deploymentDescriptorFile" is not set, this goal will first look for "jboss-service.xml", then "hibernate-service.xml" and if those are not found, it will search for a file ending with * "-hibernate.xml"

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: runtime.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
archive MavenArchiveConfiguration - The maven archive configuration to use.
archiveName String - The name of the generated packaging archive.
Default value is: ${project.build.finalName}.
classifier String - Classifier to add to the generated artifact. If given, the artifact will not be the primary project artifact.
deploymentDescriptorDest File - The destination of the deployment descriptor file.
Default value is: ${project.build.directory}/${project.build.finalName}/META-INF.
deploymentDescriptorDestName String - The filename for the output deployment descriptor. By default the deployment descriptor will retain the same filename.
deploymentDescriptorFile File - The name of the hibernate deployment descriptor file. If left blank, the goal will automatically search for "jboss-service.xml", "hibernate-service.xml", and "*-hibernate.xml" in that order.
excludeAll boolean - All artifacts are excluded.
Default value is: false.
excludes Set - Dependency Artifacts excluded from packaging within the generated archive file. Use artifactId:groupId in nested exclude tags.
explodedOnly boolean 2.0 Whether to generate only the exploded archive format. By default both an exploded directory and a zipped file will be created. If set to "true" only the exploded directory will be created.
Default value is: false.
libDirectory File - The directory where to put the libs.
Default value is: ${project.build.directory}/${project.build.finalName}/lib.
manifest File - The manifest file for the archive.
outputDirectory File - The directory for the generated packaging.
Default value is: ${project.build.directory}.
packagingDirectory File - The directory where the JBoss packaging is built.
Default value is: ${project.build.directory}/${project.build.finalName}.
primaryArtifact boolean - Whether this is the main artifact of the current project.
Default value is: true.
removeDependencyVersions boolean - Whether to remove the version numbers from the filenames of the included dependencies. By default the included dependencies will have the format [artifactId]-[version]-[classifier].[type] If this parameter is set to true, the jar name will be in the format [artifactId]-[classifier].[type]
Default value is: false.

Parameter Details

archive:

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

archiveName:

The name of the generated packaging archive.
  • Type: java.lang.String
  • Required: No
  • Default: ${project.build.finalName}

classifier:

Classifier to add to the generated artifact. If given, the artifact will not be the primary project artifact.
  • Type: java.lang.String
  • Required: No

deploymentDescriptorDest:

The destination of the deployment descriptor file.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}/META-INF

deploymentDescriptorDestName:

The filename for the output deployment descriptor. By default the deployment descriptor will retain the same filename.
  • Type: java.lang.String
  • Required: No

deploymentDescriptorFile:

The name of the hibernate deployment descriptor file. If left blank, the goal will automatically search for "jboss-service.xml", "hibernate-service.xml", and "*-hibernate.xml" in that order.
  • Type: java.io.File
  • Required: No
  • Expression: ${deploymentDescriptorFile}

excludeAll:

All artifacts are excluded.
  • Type: boolean
  • Required: No
  • Expression: ${excludeAll}
  • Default: false

excludes:

Dependency Artifacts excluded from packaging within the generated archive file. Use artifactId:groupId in nested exclude tags.
  • Type: java.util.Set
  • Required: No

explodedOnly:

Whether to generate only the exploded archive format. By default both an exploded directory and a zipped file will be created. If set to "true" only the exploded directory will be created.
  • Type: boolean
  • Since: 2.0
  • Required: No
  • Expression: ${explodedOnly}
  • Default: false

libDirectory:

The directory where to put the libs.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}/lib

manifest:

The manifest file for the archive.
  • Type: java.io.File
  • Required: No

outputDirectory:

The directory for the generated packaging.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}

packagingDirectory:

The directory where the JBoss packaging is built.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}

primaryArtifact:

Whether this is the main artifact of the current project.
  • Type: boolean
  • Required: No
  • Default: true

removeDependencyVersions:

Whether to remove the version numbers from the filenames of the included dependencies. By default the included dependencies will have the format [artifactId]-[version]-[classifier].[type] If this parameter is set to true, the jar name will be in the format [artifactId]-[classifier].[type]
  • Type: boolean
  • Required: No
  • Default: false