Maven Petals Plugin

The build of a service unit project must fail if two JBI components are declared as dependencies

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.2.0
  • Fix Version/s: 3.2.1
  • Component/s: jbi-validate
  • Security Level: Public
  • Description:
    Hide

    A service unit must define only one JBI component dependency as component on which it must be run.
    But we can need to define other JBI component dependencies to extract service provider contracts or resources. These components will not be used to run the service unit.

    So, please add a check on phase 'validate' of project Maven lifecycle to check:

    • for a service unit: only one JBI component dependency is defined to run the service unit,
    • for a service assembly: its service unit dependencies must define only one JBI component to run the service unit.

    And if more than one JBI component dependencies are defined, we must define the JBI component used to run the service unit at Maven Petals plugin, through the parameter 'jbiComponentUsed'. The JBI component required to run the service unit will be added as extension in the service unit JBI descriptor, so it is required to have the parameter 'updateJBIXml' set to true. This extension will be used when packaging a service assembly.

    Show
    A service unit must define only one JBI component dependency as component on which it must be run. But we can need to define other JBI component dependencies to extract service provider contracts or resources. These components will not be used to run the service unit. So, please add a check on phase 'validate' of project Maven lifecycle to check:
    • for a service unit: only one JBI component dependency is defined to run the service unit,
    • for a service assembly: its service unit dependencies must define only one JBI component to run the service unit.
    And if more than one JBI component dependencies are defined, we must define the JBI component used to run the service unit at Maven Petals plugin, through the parameter 'jbiComponentUsed'. The JBI component required to run the service unit will be added as extension in the service unit JBI descriptor, so it is required to have the parameter 'updateJBIXml' set to true. This extension will be used when packaging a service assembly.
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Wed, 9 Feb 2022 - 14:47:01 +0100

Fixed in trunk

Show
Christophe DENEUX added a comment - Wed, 9 Feb 2022 - 14:47:01 +0100 Fixed in trunk
Hide
Christophe DENEUX added a comment - Wed, 9 Feb 2022 - 14:47:30 +0100

Reopened to be backported in branch 3.2.x

Show
Christophe DENEUX added a comment - Wed, 9 Feb 2022 - 14:47:30 +0100 Reopened to be backported in branch 3.2.x
Hide
Christophe DENEUX added a comment - Wed, 9 Feb 2022 - 15:48:34 +0100

Backported in branch petals-maven-plugin-3.2.x

Show
Christophe DENEUX added a comment - Wed, 9 Feb 2022 - 15:48:34 +0100 Backported in branch petals-maven-plugin-3.2.x
Hide
Christophe DENEUX added a comment - Tue, 8 Mar 2022 - 12:25:21 +0100

Reopened because we can have several JBI component dependencies in a service unit project:

  • one as the component on which the service unit must run,
  • other components from which service provider contracts can be extracted
Show
Christophe DENEUX added a comment - Tue, 8 Mar 2022 - 12:25:21 +0100 Reopened because we can have several JBI component dependencies in a service unit project:
  • one as the component on which the service unit must run,
  • other components from which service provider contracts can be extracted
Hide
Christophe DENEUX added a comment - Tue, 8 Mar 2022 - 12:39:27 +0100

Usecase with other JBI component dependencies used to extract service provider contracts and resources added to trunk

Show
Christophe DENEUX added a comment - Tue, 8 Mar 2022 - 12:39:27 +0100 Usecase with other JBI component dependencies used to extract service provider contracts and resources added to trunk
Hide
Christophe DENEUX added a comment - Tue, 8 Mar 2022 - 15:25:39 +0100

Backported in branches petals-jbi-descriptor-2.4.x and petals-maven-plugin-3.2.x

Show
Christophe DENEUX added a comment - Tue, 8 Mar 2022 - 15:25:39 +0100 Backported in branches petals-jbi-descriptor-2.4.x and petals-maven-plugin-3.2.x

People

Dates

  • Created:
    Wed, 9 Feb 2022 - 12:00:50 +0100
    Updated:
    Tue, 8 Mar 2022 - 15:25:39 +0100
    Resolved:
    Tue, 8 Mar 2022 - 12:39:27 +0100