Hello, I would like to use spigot with maven, but when I add the API to my project I don't have access to the NMS classes whereas when I add it in external jar I don't have any problems. How to do ? Thank you !
For the NMS classes, use BuildTools to generate Spigot and use the argument --compile craftbukkit and then edit your pom.xml to add your local spigot jar containing the NMS classes
if you import craftbukkit then it wouldnt work til you built craftbukkit. but the spigot server is still being generated with craftbukkit inside it. all that command does is make spigot with craftbukkit AND craftbukkit by itself also build. they disabled this option because people shouldnt be using craftbukkit servers. they should use spigot servers which already contain craftbukkit.