-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The input is empty. You have to specify one or more '-injars' options #348
Comments
Based on your code, your injar parameter points to a directory of class files, not a JAR file. Try changing that. |
@lasselindqvist but from
does I misunderstand it? |
You can see the parameter here: https://github.com/wvengen/proguard-maven-plugin/blob/master/src/main/java/com/github/wvengen/maven/proguard/ProGuardMojo.java#L192 See https://github.com/wvengen/proguard-maven-plugin/blob/master/src/main/java/com/github/wvengen/maven/proguard/ProGuardMojo.java#L434 about what happens if that directory does not exist. You have given outputDirectory parameter and maybe that is what breaks you usage of it. Why is outputDirectory also used as input directory? I have no idea and it preceeds my time. Maybe there could be a separate inputDirectory which could default to outputDirectory if none specified (for compatibility reasons), but there is none. If you need such a solution, I could merge and release such a change. |
I added After I remove this parameter, this error gone, the obfuscated classes are in |
spring boot 2.x, jdk 1.8, maven 3.5, proguard 7.2.2 and proguard-maven-plugin 2.6.0.
my configuration as follows:
my project is packaged as
war
.I want to obfuscate the
war
or its classes, when I executemvn clean package
inidea
, the error thrown:what's the problem? I have set
injar
asclasses
andphase
ofexecution
ascompile
.The text was updated successfully, but these errors were encountered: