Skip to content

Wrong OSGi relation between JCA 1.7 and JTA 1.3 (JavaEE8, JakartaEE8) #120

Description

@grgrzybek

I'm working on https://github.com/ops4j/org.ops4j.pax.transx OSGi project and I want to polish the dependencies related to different JavaEE APIs.
I also maintain my own matrix of versions (no JavaEE 9 yet) here

There is some confusion about JTA 1.2/1.3 and JCA 1.7 versions

However I checked available Maven central artifacts:

  • javax.resource/javax.resource-api/1.7 has Import-Package: ...,javax.transaction;version="[1.2,1.3)",javax.transaction.xa;version="[1.2,1.3)"
  • javax.resource/javax.resource-api/1.7.1 has Import-Package: ...,javax.transaction;version="[1.3,2.0)",javax.transaction.xa
  • jakarta.resource/jakarta.resource-api/1.7.4 has Import-Package: ...,javax.transaction;version="[1.3,2.0)",javax.transaction.xa

However each of the above has some problems...

  • Javax JCA API 1.7 has too narrow version range...
  • which was fixed in https://github.com/javaee/javax.resource/pull/4/files and Javax JCA API 1.7.1, but this version however should include JTA 1.2 API, as specified in JavaEE 8 (differently than in JakartaEE 8)
  • Jakarta JCA API 1.7.4 gets it almost correct, but
    • Even if it's Jakarta version (and JTA 1.3 is justified here) the package is still javax.transaction and JakartaEE8 should be compatible with JavaEE8, so the range should be [1.2,2)
    • it exports doc-files package which is a result of wrong maven-bundle-plugin configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions