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

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
29s
1
Christophe DENEUX
Wed, 9 Feb 2022 - 12:01:19 +0100
Open Open In Progress In Progress
36s
1
Christophe DENEUX
Wed, 9 Feb 2022 - 12:01:55 +0100
In Progress In Progress Resolved Resolved
2h 45m
1
Christophe DENEUX
Wed, 9 Feb 2022 - 14:47:01 +0100
Resolved Resolved Open Open
29s
1
Christophe DENEUX
Wed, 9 Feb 2022 - 14:47:30 +0100
Open Open In Progress In Progress
1h
1
Christophe DENEUX
Wed, 9 Feb 2022 - 15:48:28 +0100
In Progress In Progress Resolved Resolved
6s
1
Christophe DENEUX
Wed, 9 Feb 2022 - 15:48:34 +0100
Resolved Resolved Open Open
26d 20h 36m
1
Christophe DENEUX
Tue, 8 Mar 2022 - 12:25:21 +0100
Open Open In Progress In Progress
32s
1
Christophe DENEUX
Tue, 8 Mar 2022 - 12:25:53 +0100
In Progress In Progress Resolved Resolved
13m 34s
1
Christophe DENEUX
Tue, 8 Mar 2022 - 12:39:27 +0100

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