#need help importing craftbukkit using

1 messages · Page 1 of 1 (latest)

deep gale
#

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<systemPath>G:\Coding\One-In-The-Chamber-master\OITC-1.8.9 (clean)\src\resources\craftbukkit-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
<type>jar</type>
<scope>system</scope>
</dependency>
</dependencies>

ember topaz
#

Again don't depend on craft bukkit

#

Don't use system path

deep gale
#

How can I use craftplayer?

ember topaz
#

and don't depend on bukkit

#

Change the artifact id from spigot-api to spigot

meager breach
deep gale
#

I have run buildtools

#

so if i change it to spigot then

meager breach
#

then reload maven and you should have it

deep gale
#

Still cannot import CraftPlayer

meager breach
#

did you reload maven

deep gale
#

I used maven > refresh project

ember topaz
#

Send your new pom

#

in paste

deep gale
#

same as before but spigot instead of spigot-api

meager breach
ember topaz
#

^

deep gale
#

oh ok ill do that

#

thanks for helping btw guys!

#

here is my current pom

meager breach
#

you are still depending on bukkit and craftbukkit when you do not need to do, also you shouldnt need to add your maven local to the pom manually

deep gale
#

ok ill remove all of those!

#

new pom

meager breach
#

reloading maven should give you access to CraftPlayer

ember topaz
#

You seem to have a custom m2 location

deep gale
#

m2 is users/myname/.m2

ember topaz
#

Since you hardcoded it directly in to your pom instead of configuring maven BuildTools might not detect that

#

and install the dependency somewhere else

#

ah you removed that in the new pom mb

#

If it still doesn't work send the maven log in paste

deep gale
#

ok ive fixed it!

#

EpicEbics instructions are what worked, however I had to type out the import manually rather than using autoimport