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.