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

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

执行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 *;
}
目录
相关文章
|
Java 应用服务中间件 nginx
【异常解决】java程序连接MinIO报错The request signature we calculated does not match the signature you provided.
【异常解决】java程序连接MinIO报错The request signature we calculated does not match the signature you provided.
2260 0
|
4月前
|
Java 开发工具
开发工具系类 之 Cannot determine path to ‘tools.jar‘ library for 17 (D:/Program Files/Java/jdk-17.0.9)
这篇文章讲述了作者在升级JDK至17版本后遇到IDEA无法识别`tools.jar`的问题,并提供了两种解决方法:升级IDEA版本或降低JDK版本,并提供了相关版本的IDEA兼容性信息。
开发工具系类 之 Cannot determine path to ‘tools.jar‘ library for 17 (D:/Program Files/Java/jdk-17.0.9)
|
5月前
|
Java
关于idea报错:Cannot determine path to 'tools.jar' library for 17 (E:\java-jdk\jdk17)的解决办法
关于idea报错:Cannot determine path to 'tools.jar' library for 17 (E:\java-jdk\jdk17)的解决办法
|
4月前
|
Java API 数据安全/隐私保护
【Azure Developer】使用 adal4j(Azure Active Directory authentication library for Java)如何来获取Token呢 (通过用户名和密码方式获取Access Token)
【Azure Developer】使用 adal4j(Azure Active Directory authentication library for Java)如何来获取Token呢 (通过用户名和密码方式获取Access Token)
|
IDE Java 开发工具
解决IntelliJ IDEA报错Error:Cannot determine path to ‘tools.jar‘ library for 17 (D:/JAVA)
解决IntelliJ IDEA报错Error:Cannot determine path to ‘tools.jar‘ library for 17 (D:/JAVA)
1596 0
|
IDE Java 开发工具
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8的解决方案
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8的解决方案
|
7月前
|
Java
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
180 1
|
存储 前端开发 Java
【Java】If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
【Java】If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
498 0
|
Java
Java项目删除了Jre System library导致大量错误的解决方案
今天打算在java项目添加一个.jar包,点错remove jre system library,工程里面的代码好多错误。
196 0
|
Java 开发工具 Android开发
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.