Skip to content

Install

Sukaato edited this page Jan 7, 2021 · 1 revision

How to add Bukkit-timer in Maven project

Step 1

Edit your ~/.m2/settings.xml file.

Add this code :

  <servers>
    <server>
      <id>github</id>
      <username>USERNAME</username>
      <password>TOKEN</password>
    </server>
  </servers>

Replace USERNAME with your GitHub username, and TOKEN with your personal access token.

Step 2

Edit your pom.xml file

Add this code :

<repositories>
    <repository>
        <id>github</id>
        <url>https://maven.pkg.github.com/CheeseGrinder/packages</url>
    </repository>
</repositories>


<dependencies>
  <dependency>
    <groupId>fr.cheeseGrinder</groupId>
    <artifactId>bukkit-timer</artifactId>
    <version>VERSION</version>
  </dependency>
</dependencies>

Replace VERSION with version use want to use.

Step 3

run mvn install command.

Clone this wiki locally