Skip to content

bnd finds 2 contracts in bundle that provides only 1 if -contract instruction is parameterized #3726

@rotty3000

Description

@rotty3000

The org.apache.geronimo.specs:geronimo-jaxrs_2.1_spec:1.1 contains a single contract in the namespace JavaJAXRS. However, bnd is reading this contract two times when the -contract instructions is parameterized to make the requirement optional. This causes an error when requirements are added to a client bundle.

for example: a client bundle uses N contracts, 1 of which is JavaJAXRS, but jaxrs should not be a hard requirement because the packages are imported resolution:=optional. However, when parameterizing the -contract instruction to make it optional like:

-contract: JavaJAXRS;resolution:="optional", *

an error occurs because the contract is read 2 times by the contract collection logic.

Metadata

Metadata

Assignees

Labels

maint-candidateIssues or pull requests that are candidates for a maintenance release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions