Setting up environment, NBT data

I’m using Intellij IDEA with Minecraft Development plugin.

I came across a problem when I wanted to get NBT data from an ItemStack, but either I have hard time understanding Paper API and/or I’m missing something in my maven pom file. I found a solution using net.minecraft.server package with NBTTagCompound, etc., but I cannot import it and find how to add this to dependencies.
Is there a better way in Paper?
How can I import net.minecraft.server?
Is there a recommended setup for plugin development for paper?

part of my pom file:


I found out how to get net.minecraft.server. It’s craftbukkit.