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

Provide more details on how to make Jackson on Jersey work for MP #3953

Closed
klustria opened this issue Mar 10, 2022 · 2 comments
Closed

Provide more details on how to make Jackson on Jersey work for MP #3953

klustria opened this issue Mar 10, 2022 · 2 comments
Assignees

Comments

@klustria
Copy link
Member

klustria commented Mar 10, 2022

Environment Details

  • Helidon Version: All
  • Helidon MP

Problem Description

The FAQ section https://github.com/oracle/helidon/wiki/FAQ#how-do-i-use-jackson-in-helidon-mp does not provide a complete answer on how to make Jackson work when using helidon-microprofile bundles artifact as a dependency. This issue: #3198 actually provides answer on what dependency within the bundle needs to be excluded. In my testing adding jersey-media-json-binding and excluding jersey-media-json-binding from helidon-microprofile bundles dependency made it work, even though the issue also suggests excluding jakarta.json.bind-api and yasson. Maybe we can add in the FAQ that if helidon-microprofile bundles artifact is used, then we need to add exclusion like this:

<dependency>
    <groupId>io.helidon.microprofile.bundles</groupId>
    <artifactId>helidon-microprofile</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-json-binding</artifactId>
        </exclusion>
        <exclusion>
            <groupId>jakarta.json.bind</groupId>
            <artifactId>jakarta.json.bind-api</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.eclipse</groupId>
            <artifactId>yasson</artifactId>
        </exclusion>
    </exclusions>
</dependency>
@ljnelson
Copy link
Member

@klustria
Copy link
Member Author

This is a sufficient update to this issue. I'll close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants