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

jersey-media-json-binding 3.0.12 has two impls of parsson on classpath #5519

Closed
danielkec opened this issue Jan 29, 2024 · 0 comments · Fixed by #5520
Closed

jersey-media-json-binding 3.0.12 has two impls of parsson on classpath #5519

danielkec opened this issue Jan 29, 2024 · 0 comments · Fixed by #5520

Comments

@danielkec
Copy link
Contributor

danielkec commented Jan 29, 2024

jersey-media-json-binding 3.0.x has two implementations of jaxp on classpath, pre-parsson ref impl and parsson.

[INFO] org.glassfish.jersey.media:jersey-media-json-binding:jar:3.0.11
[INFO] +- jakarta.json:jakarta.json-api:jar:2.0.2:compile
[INFO] +- jakarta.json.bind:jakarta.json.bind-api:jar:2.0.0:compile
[INFO] +- org.eclipse.parsson:parsson:jar:1.0.3:compile           <------------ PARSSON
[INFO] +- org.eclipse:yasson:jar:2.0.4:compile
[INFO] |  \- org.glassfish:jakarta.json:jar:module:2.0.0:compile  <------------ PRE-PARSON jsonp ref impl

Proposed fix:

diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
--- a/media/json-binding/pom.xml	(revision b8d994c226f6bdd4904fa4fead8393533585c3f2)
+++ b/media/json-binding/pom.xml	(date 1706521222438)
@@ -94,6 +94,11 @@
                     <groupId>jakarta.json</groupId>
                     <artifactId>jakarta.json-api</artifactId>
                 </exclusion>
+                <exclusion>
+                    <!-- Exclude pre Parsson jsonp ref impl -->
+                    <groupId>org.glassfish</groupId>
+                    <artifactId>jakarta.json</artifactId>
+                </exclusion>
             </exclusions>
         </dependency>
@senivam senivam linked a pull request Jan 29, 2024 that will close this issue
@senivam senivam changed the title jersey-media-json-binding 3.0.11 has two impls of parsson on classpath jersey-media-json-binding 3.0.12 has two impls of parsson on classpath Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants