Maven jar problem

Discussion in 'Spigot Plugin Development' started by MrAxeTv, Jan 1, 2020.

Thread Status:
Not open for further replies.
  1. Hello there I am having problem when I compile my jar file with maven all my depencecies are added to to that jar
    why is that so my pom file https://pastebin.com/havVvbYX

    So jar files goes with crazy size

    Thanks :cry:
     
  2. You are shading 2 dependencies, this is what causes the size.

    Btw, why do you use Java 6?
     
  3. yes I know I am shading NBTAPI and NBTInjector
    but in eclips only those 2 were added to jar file but now everything is added every dependency which I am using
    Need to look in that part with java 6 it should be java 8
     
  4. where did u saw I am using java 6 by the way
     
  5. In the compiler plugin, you specify source 6.
     
    • Like Like x 1
  6. That was example which I have found really struggling with this maven thing
    and I need it because of that NBTInjector api
    but what is reason know all other dependencies are added to jar file
     
  7. Specify the provided scope on the dependencies that don't need to be compiled
     
    • Like Like x 1
  8. could u maybe have time to send example of what u mean or some link
     
    • Like Like x 1
  9. Thanks man Happy Holidays & Happy NewYear
     
Thread Status:
Not open for further replies.