Skip to content

Shading behavior of jackson-jr-all is surprising. #42

@adamv

Description

@adamv

In this repo: https://github.com/adamv/jr-shade

I'm including jackson-jr-all as a dependency, and shading it so that neither it nor jackson-core leak downstream. When do mvn package, then unzip the resulting fat jar I see two copies of jackson-core, one shaded one unshaded (which I think it is picking up through the parent pom?)

To get a properly shaded library I need to exclude the jackson-core dependency:
https://github.com/adamv/jr-shade/blob/master/pom.xml#L51

I'm not sure if this is expected behavior or not. If so, it would be helpful for this project to document the maven dependency w/ the exclusion included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions