Solved How to import net.minecraft.v1_8_R3

Discussion in 'Plugin Development' started by flaxeneel2, Jan 7, 2021.

  1. Offline

    flaxeneel2

    I wanted to fork out on an old old plugin and since I am really really new to plugin development (me nub), i didnt know how to import net.minecraft.V1_8_R3 but it is used in the plugin, i have tried going through old forums and the only solution i found was to import craftbukkit, which i dont know how to do since i dont have the repo link, someone managed to do it from the spigot repo link but i guess that was taken down since i cant find it there either, can anyone help me?, the current dependencies i have are below

    Code:
    <dependencies>
            <dependency>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.2.0</version>
                <type>maven-plugin</type>
            </dependency>
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>1.8.8-R0.1-SNAPSHOT</version>
                <type>jar</type>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.spigotmc</groupId>
                <artifactId>spigot-api</artifactId>
                <version>1.8.8-R0.1-SNAPSHOT</version>
                <type>jar</type>
                <scope>provided</scope>
            </dependency>
        </dependencies>
    EDIT:

    Okay so I figured it out myself, and will just briefely explain the process for anyone who comes across this thread, basically what i had to do was build bukkit, craftbukkit using the build tools ( https://www.spigotmc.org/wiki/buildtools/#1-8-8 ) and then import the jarfiles from the "out" of bukkit and craftbukkit into my project, to do so i just edit my pom.xml


    Code:
    <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>1.8.8-R0.1-SNAPSHOT</version>
                <systemPath>${project.basedir}/src/main/resources/bukkit-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
                <type>jar</type>
                <scope>system</scope>
            </dependency>
            <dependency>
                <groupId>org.spigotmc</groupId>
                <artifactId>spigot</artifactId>
                <version>1.8.8-R0.1-SNAPSHOT</version>
                <systemPath>${project.basedir}/src/main/resources/spigot-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
                <type>jar</type>
                <scope>system</scope>
            </dependency>
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>craftbukkit</artifactId>
                <version>1.8.8-R0.1-SNAPSHOT</version>
                <systemPath>${project.basedir}/src/main/resources/craftbukkit-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
                <type>jar</type>
                <scope>system</scope>
            </dependency>
    this works perfectly.
     
    Last edited: Jan 8, 2021

Share This Page