Can't compile spigot with nms

Discussion in 'Spigot Plugin Development' started by nvda, May 16, 2015.

  1. When I try to compile my plugin it spams this:
    [ERROR] symbol : class blah
    I'm compiling with the latest version of 1.8.3
    my pom is:
    Code (Text):
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>io.github.mck457.fHub</groupId>
      <artifactId>fHub</artifactId>
      <version>0.0.1-SNAPSHOT</version>
     
      <repositories>
     
         <repository>
                <id>spigot-repo</id>
                <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
        </repository>

        <repository>
            <id>vault-repo</id>
            <url>http://nexus.theyeticave.net/content/repositories/pub_releases</url>
        </repository>
       
    </repositories>

    <dependencies>

        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.8.3-R0.1-SNAPSHOT</version>
        </dependency>
       
        <dependency>
               <groupId>net.milkbowl.vault</groupId>
            <artifactId>VaultAPI</artifactId>
            <version>1.5</version>
            <scope>provided</scope>
        </dependency>
     
    </dependencies>
    </project>
     
  2. You can't build against the spigot API if you want to access NMS/CB code. Run BuildTools.jar, and then use the maven respository that BuildTools generates as a separate, local repository - it will have full Spigot builds that you can compile against.