jbi:generate-jbi-component-descriptor

A Mojo used to build the jbi.xml 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: generate-resources

Required Parameters

Name Type Description
component String The component class name.
type String The component type.
workDirectory File Directory that resources are copied to during the build.

Optional Parameters

Name Type Description
artifactMetadataSource ArtifactMetadataSource No description.
bootstrap String The bootstrap class name.
bootstrapClassLoaderDelegation String The bootstrap class loader delegation
componentClassLoaderDelegation String The component class loader delegation
defaultBootstrapFile File The destination of the default bootstrap.
description String The component description.
encoding String Character encoding for the auto-generated application.xml file.
factory ArtifactFactory No description.
generateJbiDescriptor Boolean Whether the application.xml should be generated or not.
generatedDescriptorLocation String Directory where the application.xml file will be auto-generated.
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

bootstrap The bootstrap class name.
  • Type: java.lang.String
  • Required: No

bootstrapClassLoaderDelegation The bootstrap class loader delegation
  • Type: java.lang.String
  • Required: No
  • Expression: parent-first

component The component class name.
  • Type: java.lang.String
  • Required: Yes

componentClassLoaderDelegation The component class loader delegation
  • Type: java.lang.String
  • Required: No
  • Expression: parent-first

defaultBootstrapFile The destination of the default bootstrap.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/classes/org/apache/servicemix/common/DefaultBootstrap.class

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 application.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}

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

type The component type.
  • Type: java.lang.String
  • Required: Yes

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