我正在使用带有ProGuard 6.0.3的wvengen ProGuard maven插件的最新版本(2.0.14)。我指定了一些典型的选项,根本没有指定任何库:
<option>-dontnote **</option>
<option>-renamesourcefileattribute SourceFile</option>
<option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod</option>
<option>-keep class my.package.Class { *; }</option>
<option>-keepclasseswithmembernames,includedescriptorclasses class * { native <methods>; }</option>
<option>-keepclassmembers,allowoptimization enum * { public static **[] values(); public static ** valueOf(java.lang.String); }</option>
<option>-keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve(); }</option>
它一直抱怨“错误:两次指定了相同的输入jar [/usr/jdk/lib/tools.jar]”。有关如何解决此问题的任何建议?
谢谢!