bungeecord

NoClassDefFoundError: HikariCP with Maven

北战南征 提交于 2019-12-25 04:26:30
问题 I'm creating a Maven plugin (to hook into Spigot/Bukkit/BungeeCord) and am attempting to connect to a database. On startup, I get this error: Exception encountered when loading plugin: WarCore java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariDataSource I've tried using the Maven dependency plugin, Maven assembly plugin, but I cannot find a solution. Here's my current pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

NoClassDefFoundException while trying to use HikariCP [duplicate]

孤街醉人 提交于 2019-12-12 03:57:15
问题 This question already has answers here : Why am I getting a NoClassDefFoundError in Java? (23 answers) Closed 2 years ago . I'm so noob at external stuff to Bukkit programming, so I'm sorry if it's so easy to solve :P I have a problem, and it's that when I try to use HikariCP in my project, it returns in an error (the title one). I'm using it in a BungeeCord plugin. The weird thing is that I have done this successfully couples of times, and I don't know why it isn't working this time. The