Compiling an older version of CB with Maven

Discussion in 'Plugin Development' started by iceblade112, Aug 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    iceblade112

    Hi!
    Well - I'm trying to compile (an older version, beta 1.7.3 from 8/15/2011 to be exact) CraftBukkit.

    What I did is cloned the Bukkit and CraftBukkit repositories from GitHub and then did "mvn clean install".

    Bukkit built without the slightest problem (after redirecting Maven to download the Minecraft vanilla server and .pom file from my local server) but then CraftBukkit is really killing me.

    What's happening is:
    Code:
    [ERROR] C:\Users\user\CraftBukkit-402e98b\src\main\ja
    va\org\bukkit\craftbukkit\CraftServer.java:[44,27] cannot find symbol
    [ERROR] symbol  : class ServerNBTManager
    [ERROR] location: package net.minecraft.server
    and it shows hundreds of times!

    What I believe what's happening is that Maven isn't reading the Bukkit jar file. So, I tried to change the dependency of Bukkit to:
    Code:
        <dependency>
          <groupId>org.bukkit</groupId>
          <artifactId>bukkit</artifactId>
          <version>0.0.1-SNAPSHOT</version>
          <type>jar</type>
          <scope>system</scope>
          <systemPath>${project.baseDir}/lib/</systemPath>
        </dependency>
    ...and...
    Code:
        <dependency>
          <groupId>org.bukkit</groupId>
          <artifactId>bukkit</artifactId>
          <version>0.0.1-SNAPSHOT</version>
          <type>jar</type>
          <scope>system</scope>
          <systemPath>${project.baseDir}/lib/bukkit-0.0.1-SNAPSHOT.jar</systemPath>
        </dependency>
    ...with no dice. What showed is (the same thing for both tries):
    Code:
    [ERROR]  The project org.bukkit:craftbukkit:0.0.1-SNAPSHOT (C:\Users\user\CraftBukkit-402e98b\pom.xml) has 1 error
    [ERROR]    'dependencies.dependency.systemPath' for org.bukkit:bukkit:jar must
    specify an absolute path but is ${project.baseDir}/lib/bukkit-0.0.1-SNAPSHOT.jar
    @ line 38, column 19
    Does anyone have any suggestions? Sorry for this big block, but I've been trying to get this thing to work for days!
     
  2. Offline

    iceblade112

    Bump? :/
     
Thread Status:
Not open for further replies.

Share This Page