Error: The input doesn't contain any classes. Did you specify the proper '-injars' options?

执行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</groupId>
                <artifactId>proguard-maven-plugin</artifactId>
                <version>2.0.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>proguard</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <obfuscate>true</obfuscate>
                    <proguardInclude>${basedir}/proguard.conf</proguardInclude>
                    <!-- 添加依赖,这里你可以按你的需要修改 -->
                    <libs>
                        <lib>${java.home}/lib/rt.jar</lib>
                        <lib>lib/jsp-api.jar</lib>
                        <lib>lib/servlet-api.jar</lib>
                    </libs>
                    <addMavenDescriptor>false</addMavenDescriptor>
                    <injar>${project.build.finalName}.war</injar>
                    <outjar>${project.build.finalName}-pg.war</outjar>
                    <outputDirectory>${project.build.directory}</outputDirectory>
                </configuration>
                <dependencies>
                    <!-- 使用4.4版本来混淆 -->
                    <dependency>
                        <groupId>net.sf.proguard</groupId>
                        <artifactId>proguard</artifactId>
                        <version>4.4</version>
                        <scope>runtime</scope>
                    </dependency>
                </dependencies>
            </plugin>

Error: The input doesn't contain any classes. Did you specify the proper '-injars' options?

时间: 2024-09-29 05:55:31

Error: The input doesn't contain any classes. Did you specify the proper '-injars' options?的相关文章

java.io.IOException: The input doesn&#39;t contain any classes. Did you specify the proper &#39;-injars&#39; opt

问题场景 在使用Maven + Proguard打包项目进行混淆时,提示以下错误: [proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] java.io.IOException: The input doesn't contain any classes. Did you specify the proper '-injars' options? [proguard] at proguard.InputRe

ubuntu12.04 编译android4.2源码 gcc: fatal error: no input files错误

============问题描述============ 最近在ubuntu12.04 编译android4.2源码时遇到一个编译错误,错误如下: host C++: libhost <= build/libs/host/pseudolocalize.cpp gcc: fatal error: no input files compilation terminated. make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_inte

Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the

问题: Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.C:\Program Files\Java\jdk1.7.0_45\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/work/Android/android-sdk\tools&

bug:clang: error: no input files

1.clang: error: no input files这个问题一般是因为你删除或者移动了某一个文件,但是在你的编译资源里面( project > target > Build Phases > Compile Sources)还存在它,只要在(project > target > Build Phases > Compile Sources)里面把那些红色的文件或者报 bug 的文件删除掉,就可以编译过了. 2.这种问题一般出现于合并分支时,pbxproj 文件中

[VirtualBox] Install Ubuntu 14.10 error 5 Input/output error

After you download the VirtualBox install package and install it (just defualt setting). Then you should download the ubuntu.iso file from the website. There are many articles about how to do this. What I want to point out is the error when installin

[生产环境数据恢复]innobackupex: fatal error: OR no &amp;#39;datadir&amp;#39; option in group &amp;#39;mysqld&amp;#39; in MySQL options

1 运行恢复命令  [[email protected] tmp]$ time /usr/bin/innobackupex --rsync --user="user" --password="#xxx$" /mysqldata/shared/backup [--rsync ] 能够记录master点,以便进行复制设置. InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy

Linux/Android——Input系统之InputReader (七)

在前文Linux/Android--Input系统之frameworks层InputManagerService (六)  这里介绍了android层input服务的启动,其中启动了一个读取来自底层event事件的线程. 而在Linux/Android--input系统之 kernel层 与 frameworks层交互 (五)有分析到是通过一个event%d的设备文件交互的,也就是说android层是通过读取event%d来获取event的,这个工作就是InputReader 撰写不易,转载需注

untiy导出android遇到的问题:convert error

Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. untiy导出android时,convert 失败,一般由于plugins下的jar包重复应用,因为untiy会自动搜寻导入jar包,所以请确保导入第三方jar包时,没有重复,如classes.jar是unity本身就有的jar包,或者httpmine-xx,一般前缀相同的jar包都会引发该错误. untiy导出

How to do sparse input text classification(dnn) using tensorflow

You can get complete example code from https://github.com/chenghuige/tensorflow-example ? ? Including How to parse libsvm dataset file to tfrecords Reading tfrecords and do dnn/logistic regresssion classifciation/regresssion Train + evaluate See trai