Hibernate 4.3.x 支持 JTA 1.1 吗?

Does Hibernate 4.3.x support JTA 1.1?

Hibernate 4.3.x 的 Maven 依赖项是 JTA 1.2。出于许可原因,我们更愿意使用 Geronimo 的 JTA 1.1。

但是,我找不到任何明确的迹象表明 JTA 1.1 是否与 Hibernate 4 兼容。3.x。我看到在 Hibernate 5.x 中,依赖项已改回 JTA 1.1

谁能确认 Hibernate 4.3.x 是否与 JTA 1.1 兼容?

我能找到的最好的是 build.gradle 文件中的这个片段 found here. 它适用于 4.3.11.final 如果它不在您当前的版本中,它看起来像是一个解决方法你可以尝试添加它吗?

instruction 'Import-Package',
                // Temporarily support JTA 1.1 -- Karaf and other frameworks still
                // use it.  Without this, the plugin generates [1.2,2).
                'javax.transaction;version="[1.1,2)"',
                // Tell Gradle OSGi to still dynamically import the other packages.
                // IMPORTANT: Do not include the * in the modules' .gradle files.
                // If it exists more than once, the manifest will physically contain a *.
                '*'