Not compiling with Maven

Discussion in 'Spigot Plugin Development' started by StealthBravo, May 15, 2016.

  1. Maven error log:

    We're trying to get Maven working with Jenkins as the frontend, with no luck.

    The issue:
    • Every library and JAR imports successfully besides the Bukkit API. Without the Bukkit API, the errors found in the log are present and it can't be compiled.
    All JARs and libraries with the exception of one are hosted on our own server.

    Using the following script for Maven install:
    Code (Text):
    mvn install:install-file -Dfile=bukkit.jar -DgroupId=org.bukkit -DartifactId=bukkit -Dversion=1.9.4-R0.1-SNAPSHOT -Dpackaging=jar
    I am then calling it appropriately from pom, with no luck. Still receive the errors.

    I've tried removing Spigot API and keeping just Bukkit as well as vice-versa. I've been trying to solve this for multiple hours now and I'm absolutely stumped.

    Any ideas?
  2. I don't know where people got using this file thing with bukkit/craftbukkit came from.. Just upload the proper jar in the correct location in jenkins local maven repo.

    For my EchoPet building with jenkins I have 'mvn install' as my command.. And it supports multiple versions.

    Also remove bukkit as you already have spigot-api

    If you don't have a weird jenkins install this should be the path for ubuntu for where you would have all the maven stuff localed
    #2 Borlea, May 15, 2016
    Last edited: May 15, 2016
  3. I receive the org.bukkit errors regardless of what I have, so that's why I decided to at least try getting the Bukkit API in there. Other than that, I'm not sure what to do since even with Spigot API, these errors still remain, as well as with CB.