Solved HikariCP question

Discussion in 'Spigot Plugin Development' started by MadMaxCookie, Jun 28, 2016.

  1. What happened if you didn't used maven shade for hikaricp ?
    Code (Java):
  2. Then you would get Class defound errors, trust me, I've experienced it.
  3. And this question has nothing to do with HikariCp lol, its for not shading when you should 0_0
  4. hmm so I better use maven shade ?
  5. but spigot I already had an project with the HikariCP can someone help me make a maven shade from an existing project ? using IntelliJ
  6. Yup.
    Take a look at my pom.xml:

    Code (Text):
    <project xmlns="" xmlns:xsi=""



            <!--Spigot API-->

            <defaultGoal>clean package install</defaultGoal>
                    <!-- maven compiler plugin -->
                <!-- maven shade plugin -->
  7. Just shade Hikari. If you reference an API but it isn't available at runtime, then your program will throw NoClassDefFound errors as avighnash has already stated
  8. well yeah once again
  9. Well if you know your way around Maven you should know what to add to your pom to shade Hikari from what I showed you
  10. @Redrield @avighnash well I'm using maven shade could I use dependancy by uploading file at the same time ? for example importing Vault.
  11. Vault is a bad example, as they have a maven repo. But if you mean something that you only have the jarfile for (no maven repo) Just make a dependency with scope system, and add a systemPath tag with the path to the file
  12. oh well thanks for that.