jbi:generate-jbi-service-assembly-descriptor

A Mojo used to build the jbi.xml file for a service unit.

Mojo Attributes:

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

Required Parameters

Name Type Description
workDirectory File Directory that resources are copied to during the build.

Optional Parameters

Name Type Description
artifactMetadataSource ArtifactMetadataSource No description.
description String The component description.
encoding String Character encoding for the auto-generated application.xml file.
factory ArtifactFactory No description.
generateJbiDescriptor Boolean Whether the jbi.xml should be generated or not.
generatedDescriptorLocation String Directory where the application.xml file will be auto-generated.
jbiConnectionsFile File The location of a file containing the connections elements that can be merged into the jbi.xml
localRepo ArtifactRepository No description. Default value is ${localRepository}.
name String The component name.
projectBuilder MavenProjectBuilder No description.
projectHelper MavenProjectHelper Maven ProjectHelper
remoteRepos List No description. Default value is ${project.remoteArtifactRepositories}.
resolver ArtifactResolver No description.

Parameter Details

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

description The component description.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.name}

encoding Character encoding for the auto-generated application.xml file.
  • Type: java.lang.String
  • Required: No

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

generateJbiDescriptor Whether the jbi.xml should be generated or not.
  • Type: java.lang.Boolean
  • Required: No

generatedDescriptorLocation Directory where the application.xml file will be auto-generated.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.directory}/classes/META-INF

jbiConnectionsFile The location of a file containing the connections elements that can be merged into the jbi.xml
  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}/src/main/resources/jbi-connections.xml

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

name The component name.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.artifactId}

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

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