Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This LifecycleExecutionException (The service unit xyz does not have a dependency which is packaged as a jbi-component or a project property 'componentName') sometimes occurs when you are packaging multiple SU that target the same component.

There are two ways to specify the JBI component that is targeted by a SU:

  1. adding a dependency to the SU's pom.xml, e.g.
    Code Block
    xml
    xml
    <dependency>
       <groupId>org.apache.servicemix</groupId>
       <artifactId>servicemix-http</artifactId>
       <version>2008.01</version>
    </dependency>
    
  2. adding a property called componentName to the SU's pom.xml, e.g.
    Code Block
    xml
    xml
    <properties>
      <componentName>servicemix-http</componentName>
    </properties>
    

You can avoid the problem by using the second alternative when specifying the JBI component name.