NichtStudioCode / InvUI

A spigot library for creating custom inventory-based GUIs.
MIT License
253 stars 20 forks source link

Duplicate - META-INF/MANIFEST.MF inside InvUI Jars. #19

Closed ItsRainingHP closed 1 year ago

ItsRainingHP commented 1 year ago

I tried to get help from InvUI developers in Discord but nobody responded so I went to JetBrains for help. In order to remove the following warnings when running your API I had to include this filter:

[WARNING]   - META-INF/MANIFEST.MF
[WARNING] maven-shade-plugin has detected that some class files are   
[WARNING] present in two or more JARs. When this happens, only one   
[WARNING] single version of the class is copied to the uber jar.   
[WARNING] Usually this is not harmful and you can skip these warnings,   
[WARNING] otherwise try to manually exclude artifacts based on   
[WARNING] mvn dependency:tree -Ddetail=true and the above output.

Filter:

<filters>
  <filter>
      <artifact>de.studiocode.invui:*</artifact>
      <excludes>
          <exclude>META-INF/*.MF</exclude>
      </excludes>
  </filter>
  <filter>
      <artifact>org.jetbrains:annotations:*</artifact>
      <excludes>
          <exclude>META-INF/*.MF</exclude>
      </excludes>
  </filter>
</filters>