Skip to content

Duplicate detection of JiJ’d libraries that have the same name but different content #399

@Bawnorton

Description

@Bawnorton

FML doesn’t appear to handle duplicately named JiJ’d dependencies correctly when the content of said jars is completely different, the resolution appears to just check the name which is insufficient for duplicate detection as it leads to false positives.

https://mclo.gs/B76Yiye

[04:06:33] [main/WARN]: Attempted to select two dependency jars from JarJar which have the same identification: jar(mods/neruina-3.1.6+1.21.11-neoforge.jar) > jar(mods/neruina-3.1.6+1.21.11-neoforge.jar > httpclient-4.5.jar) and jar(mods/Geyser-NeoForge.jar) > jar(mods/Geyser-NeoForge.jar > httpclient-1.9.0.jar). Using jar(mods/neruina-3.1.6+1.21.11-neoforge.jar) > jar(mods/neruina-3.1.6+1.21.11-neoforge.jar > httpclient-4.5.jar)

[04:06:33] [main/INFO]: Found library file "httpclient-4.5.jar" [parent: neruina-3.1.6+1.21.11-neoforge.jar, locator: jarinjar]

java.lang.NoClassDefFoundError: net/lenni0451/commons/httpclient/HttpClient
	at FML Plugins//net.raphimc.minecraftauth.MinecraftAuth.createHttpClient(MinecraftAuth.java:47)

Lenni’s httpclient and apaches have the same name but have different content leading to the NCDFE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions