Skip to content

netty-tcnative-boringssl-static with linux-x86_64 classifier still pulls in other platform dependencies(2.0.72.Final) #934

@leonchen83

Description

@leonchen83

We are trying to depend only on the linux-x86_64 variant of netty-tcnative-boringssl-static (version 2.0.72.Final). Our pom.xml is configured like this:

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-tcnative-boringssl-static</artifactId>
    <version>2.0.72.Final</version>
    <classifier>linux-x86_64</classifier>
</dependency>

However, when we run mvn dependency:tree, we still see that dependencies for other platforms are being pulled in:

[INFO] |  |  +- io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.72.Final:runtime
[INFO] |  |  |  +- io.netty:netty-tcnative-classes:jar:2.0.72.Final:runtime
[INFO] |  |  |  +- io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.72.Final:runtime
[INFO] |  |  |  +- io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.72.Final:runtime
[INFO] |  |  |  +- io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.72.Final:runtime
[INFO] |  |  |  \- io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.72.Final:runtime

We were expecting only the linux-x86_64 JAR to be included.

Is this the intended behavior due to how netty-tcnative-classes handles multi-platform resolution?
Is there a way to exclude all other platforms when only one is required?

Any clarification or guidance would be appreciated. Thank you!

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