码迷,mamicode.com
首页 > 编程语言 > 详细

Ignoring unused library classes...java.io.IOException: You have to specify '-keep' options for the s

时间:2015-05-12 17:10:01      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:maven   library   打包   proguard   install   

执行Maven Install打包的时候,出现以下错误信息:
Ignoring unused library classes…java.io.IOException: You have to specify ‘-keep’ options for the shrinking step.

 [proguard] Ignoring unused library classes...java.io.IOException: You have to specify ‘-keep‘ options for the shrinking step.
 [proguard]   Original number of library classes: 19765
 [proguard]   Final number of library classes:    19765
 [proguard] Setting target versions...
 [proguard] 
 [proguard]     at proguard.SeedPrinter.write(SeedPrinter.java:60)
 [proguard]     at proguard.ProGuard.printSeeds(ProGuard.java:265)
 [proguard]     at proguard.ProGuard.execute(ProGuard.java:108)
 [proguard] Printing kept classes, fields, and methods...   at proguard.ProGuard.main(ProGuard.java:538)
 [proguard] 

忽略未使用的库类……java.io.IOException: 您必须指定 ‘-保持 ’ 选项缩小范围。

似乎ProGuard的设计原则中, ‘-keep’ 选项是必须使用的,如果你希望对所有的类都进行混淆的话,那就设置一个根本不存在的过虑器吧,例如:

-keep public class com.abcd.* {
    public protected *;
}

Ignoring unused library classes...java.io.IOException: You have to specify '-keep' options for the s

标签:maven   library   打包   proguard   install   

原文地址:http://blog.csdn.net/testcs_dn/article/details/45671369

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!