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

Christophe DENEUX made changes - Wed, 9 Feb 2022 - 12:01:19 +0100
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Component/s jbi-validate [ 10490 ]
Christophe DENEUX made changes - Wed, 9 Feb 2022 - 12:01:55 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
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
Christophe DENEUX made changes - Wed, 9 Feb 2022 - 14:47:01 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 3.3.0 [ 10875 ]
Resolution Fixed [ 1 ]
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
Christophe DENEUX made changes - Wed, 9 Feb 2022 - 14:47:30 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Wed, 9 Feb 2022 - 15:48:28 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
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
Christophe DENEUX made changes - Wed, 9 Feb 2022 - 15:48:34 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 3.2.1 [ 11020 ]
Fix Version/s 3.3.0 [ 10875 ]
Resolution Fixed [ 1 ]
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
Christophe DENEUX made changes - Tue, 8 Mar 2022 - 12:25:21 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Tue, 8 Mar 2022 - 12:25:53 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Tue, 8 Mar 2022 - 12:35:57 +0100
Description It has no sens to define tow JBI components dependencies in a service unit project. It must fail at build time.

Please add a check on phase 'validate' of project Maven lifecycle.
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.
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
Christophe DENEUX made changes - Tue, 8 Mar 2022 - 12:39:27 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
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
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