执行Maven Install打包的时候,出现以下错误信息:
[proguard] ProGuard, version 4.4
[proguard] Reading program war [F:\Workspaces\pro-test\target\pro-test-0.0.1-SNAPSHOT.war] (filtered)
[proguard] Error: The input doesn't contain any classes. Did you specify the proper '-injars' options?
由于这个是一个测试工程,还没有添加任何的类,所以虽然POM文件中指定了“injars”参数,还是产生了此错误。
“injars”参数设置参考:
<plugin>
<groupId>com.pyx4me</

在执行Maven Install打包时遇到错误提示:The input doesn't contain any classes。这是因为在测试工程中,尽管POM文件配置了'injars'选项,但由于工程内无类文件导致。解决方案是确保工程包含至少一个类文件或正确配置'injars'参数。
最低0.47元/天 解锁文章
5438

被折叠的 条评论
为什么被折叠?



