Skip to content

Commit

Permalink
fix for hardcoded module jackson-module-jaxb-annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <[email protected]>
  • Loading branch information
senivam committed Oct 10, 2024
1 parent 214adbc commit 62ba351
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 28 deletions.
4 changes: 2 additions & 2 deletions media/json-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
<artifactId>jakarta.activation-api</artifactId>
</exclusion>
</exclusions>
<!-- <optional>true</optional>-->
<!-- <scope>provided</scope>-->
<optional>true</optional>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.fasterxml.jackson.databind.AnnotationIntrospector;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
import com.fasterxml.jackson.module.jakarta.xmlbind.JakartaXmlBindAnnotationIntrospector;

/**
* Helper class used to encapsulate details of configuring an
Expand Down Expand Up @@ -125,7 +125,7 @@ protected AnnotationIntrospector _resolveIntrospector(Annotations ann)
*/
try {
if (_jaxbIntrospectorClass == null) {
_jaxbIntrospectorClass = JaxbAnnotationIntrospector.class;
_jaxbIntrospectorClass = JakartaXmlBindAnnotationIntrospector.class;
}
return _jaxbIntrospectorClass.newInstance();
} catch (Exception e) {
Expand Down
18 changes: 0 additions & 18 deletions tests/osgi/functional/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -367,24 +367,6 @@
<artifactId>jackson-annotations</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<!-- The last JAX-B API that has maven coordinates which do not collide with Jakarta coordinates -->
<!-- Do not update -->
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-osgi</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ public static Option[] configuration() {
mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-core").versionAsInProject(),
mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-databind").versionAsInProject(),
mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-annotations").versionAsInProject(),
//required since Jackson 2.18.0 is fixed
mavenBundle().groupId("javax.activation").artifactId("javax.activation-api").versionAsInProject(),
mavenBundle().groupId("javax.xml.bind").artifactId("jaxb-api").versionAsInProject(),
mavenBundle().groupId("com.fasterxml.jackson.module")
.artifactId("jackson-module-jaxb-annotations").versionAsInProject(),
//end of requirement from Jackson 2.18.0

mavenBundle().groupId("com.fasterxml.jackson.module").artifactId("jackson-module-jakarta-xmlbind-annotations")
.versionAsInProject()
));
Expand Down

0 comments on commit 62ba351

Please sign in to comment.