Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow jackson-module-jaxb-annotations to tolerate 2.2,3 in Import-Package #235

Merged
merged 8 commits into from
May 20, 2024
12 changes: 5 additions & 7 deletions jaxb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ for configuring data-binding.
<artifactId>jackson-databind</artifactId>
</dependency>

<!-- and actual JAXB annotations, types -->
<!-- NOTE! Despite groupId, this is "old" JAXB, not Jakarta
(3.x is real Jakarta one)
-->
<!-- Tolerate [2.2,3) for javax.xml.bind Import-Package in the generated MANIFEST.MF -->
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${version.jaxb.impl}</version>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.12</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this instead change version.jaxb.impl property?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I don't think so as there is only a 2.3.3 or 2.3.2 available.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like version.jaxb.impl is used to get a JAXB impl for tests:

    <!-- may also need JAXB impl for tests -->
    <dependency>
      <groupId>org.glassfish.jaxb</groupId>
      <artifactId>jaxb-runtime</artifactId>
      <version>${version.jaxb.impl}</version>
      <scope>test</scope>
    </dependency>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... but that does not seem to be needed, so I think I'll comment it out.

</dependency>

<!-- 14-Mar-2019, tatu: Looks like this is needed for JDK11 and later
Expand Down