Fabric API

Fabric API

152M Downloads

[Fabric API] (POM.XML) importing not working?

CloveTwilight3 opened this issue ยท 1 comments

commented

Hiya,

So I use IntelliJ IDEA and Apache Maven to develop plugins/mods, and I've recently changed from Spigot plugins to Fabric mods, but as I've not touched fabric before, I do not know what I'm doing wrong

My pom.xml reads:

    <repositories>
        <repository>
            <id>fabricmc</id>
            <url>https://maven.fabricmc.net/</url>
        </repository>
    </repositories>

    <dependencies>
        <!-- Fabric API -->
        <dependency>
            <groupId>net.fabricmc.fabric-api</groupId>
            <artifactId>fabric-api</artifactId>
            <version>0.115.0+1.21.4</version>
            <scope>provided</scope>
        </dependency>

        <!-- Minecraft Fabric Loader -->
        <dependency>
            <groupId>net.fabricmc</groupId>
            <artifactId>fabric-loader</artifactId>
            <version>[0.14.22,)</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

However, refreshing Maven throws:

Could not find artifact net.fabricmc.fabric-api:fabric-api-deprecated:jar:0.115.0+1.21.4 in fabricmc (https://maven.fabricmc.net/)

I'm sure this is correct... Am I doing it wrong?

Image of Maven Sync:
Image

Sorry if this is an obvious fix, as I'm new to the Fabric API, and I couldn't find it anywhere else.

commented

Maven is not supported, you must use Gradle with the fabric-loom plugin to develop mods. I suggest you start with the template mod here: https://fabricmc.net/develop/template/ as it has everything setup for you.