Skip to content

Maven Import

Dalton edited this page Nov 24, 2021 · 18 revisions

Maven importing

I use Maven for importing my project, if you have a gradle version for importing make a commit to this file and I will add a gradle sections

Firstly you need the JitPack repository added to your project:

<repositories>
    <!-- JitPack for GitHub projects -->
    <repository>
        <id>jitpack.io</id>
        <!-- This has "www" because: https://stackoverflow.com/questions/54928706/error-in-library-built-with-jitpack-unable-to-resolve-dependency-for-appdebu -->
        <url>https://www.jitpack.io</url>
    </repository>
</repositories>

And then you need to add the dependency to your project

NOTE: The version listed in this example, is the CORRECT version to use!

<dependencies>
   <!-- My own plugin API -->
    <dependency>
        <groupId>com.github.Burchard36</groupId>
        <artifactId>BurchAPI</artifactId>
        <version>01-AC-02</version>
        <scope>compile</scope>
    </dependency>
</dependencies>
Clone this wiki locally