Shading JNA with Maven

Discussion in 'Spigot Plugin Development' started by utf69, Jun 26, 2018.

  1. Hello, I was trying to shade JNA with Maven. I'm using IntellIJ. Here's my pom.xml.
    UPDATE: I'm receiving errors from Maven, I was just cleaning and not compiling. Here's the new log.

    Do anyone know how to do it?

    UPDATE: I fixed it.
    #1 utf69, Jun 26, 2018
    Last edited: Jun 26, 2018
  2. I see a few issues. First, you don't have the JNA artifact in your dependencies. Second, your error log says the package "com.sun.jna" doesn't exist. That makes sense considering the package you're trying to shade is "".

    Also, why do you need JNA in a bukkit plugin?