Switched from spigot to paper - sending packets [SOLVED]

Hello there!
I’m currently switching all my plugins from spigot to paper but now everything related to sending packets throws an error in my ide.
More specifically it says that the classes “cannot be resolved to a type”. (e.g. PacketPlayOutSpawnEntityLiving or CraftPlayer)
Do I need to add another dependency (beside of course paper-api) to my pom.xml?

I figured it out: added craftbukkit as dependency.