How can I wrap a Java library to use in Swift if the package comes from an external Maven repositoru?

Hi there,

I am trying to create a plugin for Hytale using Swift, and I got stuck on the very first step: accessing the Hytale’s Java library from swift. All the documentations I saw use packages from Maven central, but Hytale’s package is from a custom repository:

    <repositories>
        <!-- Hytale release repository -->
        <repository>
            <id>hytale-release</id>
            <url>https://maven.hytale.com/release</url>
        </repository>
        <!-- Hytale pre-release repository -->
        <repository>
            <id>hytale-pre-release</id>
            <url>https://maven.hytale.com/pre-release</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.hypixel.hytale</groupId>
            <artifactId>Server</artifactId>
            <version>2026.01.28-87d03be09</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

I couldn’t find anyone out there doing something like this (accessing an external repository), and I couldn’t find in the swift-java.config file how to set a custom repository. What am I missing?

This is a dupe of the issue, I replied there earlier Can I wrap a Java library to use in Swift if the package comes from an external Maven repository or even a local package? · Issue #551 · swiftlang/swift-java · GitHub

This probably needs the "define repos" feature, help in adding it is welcome!