0

I just can't seem to get this working:

 [proguard]   Class       = [co/aikar/commands/lib/expiringmap/ExpiringMap]
 [proguard]   Method      = [<init>(Lco/aikar/commands/lib/expiringmap/ExpiringMap$Builder;)V]
 [proguard]   Exception   = [proguard.evaluation.IncompleteClassHierarchyException] (Can't find common super class of
 [co.aikar.commands.lib.expiringmap.ExpiringMap$EntryLinkedHashMap] (with 1 known super classes: co.aikar.commands.lib.expiringmap.ExpiringMap$EntryLinkedHashMap) and
 [co.aikar.commands.lib.expiringmap.ExpiringMap$EntryTreeHashMap] (with 1 known super classes: co.aikar.commands.lib.expiringmap.ExpiringMap$EntryTreeHashMap))
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.3.0</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.wvengen</groupId>
                <artifactId>proguard-maven-plugin</artifactId>
                <version>2.5.3</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals><goal>proguard</goal></goals>
                        <configuration>
                            <options>
                                <option>-keep class co.aikar.** { *; }</option>
                                <option>-dontnote</option>
                                <option>-dontshrink</option>
                                <option>-dontoptimize</option>
                                <option>-dontwarn</option>
                                <option>-allowaccessmodification</option>
                            </options>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Those classes are shaded in by the maven-shade-plugin but somehow keep throwing errors. The jar containing those classes are also passed with the -injars option.

Batimonster
  • 121
  • 1
  • 6

0 Answers0