jbi:jbi-service-unit

A Mojo used to build the jbi service unit zip file

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
outputDirectory File The directory for the generated JBI component.
serviceUnitName String The name of the generated war.
workDirectory File Directory that resources are copied to during the build.

Optional Parameters

Name Type Description
archive MavenArchiveConfiguration The maven archive configuration to use.
artifactMetadataSource ArtifactMetadataSource No description.
factory ArtifactFactory No description.
localRepo ArtifactRepository No description. Default value is ${localRepository}.
projectBuilder MavenProjectBuilder No description.
projectHelper MavenProjectHelper Maven ProjectHelper
remoteRepos List No description. Default value is ${project.remoteArtifactRepositories}.
resolver ArtifactResolver No description.
serviceUnitLocation File Directory where the application.xml file will be auto-generated.

Parameter Details

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

artifactMetadataSource No Description.
  • Type: org.apache.maven.artifact.metadata.ArtifactMetadataSource
  • Required: No

factory No Description.
  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

localRepo No Description.
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Default: ${localRepository}

outputDirectory The directory for the generated JBI component.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}

projectBuilder No Description.
  • Type: org.apache.maven.project.MavenProjectBuilder
  • Required: No

projectHelper Maven ProjectHelper
  • Type: org.apache.maven.project.MavenProjectHelper
  • Required: No

remoteRepos No Description.
  • Type: java.util.List
  • Required: No
  • Default: ${project.remoteArtifactRepositories}

resolver No Description.
  • Type: org.apache.maven.artifact.resolver.ArtifactResolver
  • Required: No

serviceUnitLocation Directory where the application.xml file will be auto-generated.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/classes

serviceUnitName The name of the generated war.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.artifactId}-${project.version}.zip

workDirectory Directory that resources are copied to during the build.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/${project.artifactId}-${project.version}-installer