I was making a Minecraft plugin (with maven) and was going to use caffeine for a cache, but when I ran my server with the plugin jar, I got the error:
java.lang.NoClassDefFoundError: com/github/benmanes/caffeine/cache/Caffeine
I am updated to the latest version of caffeine (v3.0.3) and maven (v3.8.1). I honestly have nothing else to show other than that error. I only imported the following caffeine packages:
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine
pom.xml (no repo)
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>3.0.3</version>
</dependency>
server log: https://pastebin.com/zMzx37dk