Using Newer Proguard in proguard-maven-plugin
proguard-maven-plugin currently is at version 2.0.4. And it is using net.sf.proguard:proguard dependency of version 4.3, which correspond to released version of ProGuard version 4.3.
As you may know, there are newer version available. So if you want to use newer version, simply add <proguardVersion>version</proguardVersion> and provide necessary plugin dependency as it is shown on Introduction page of proguard-maven-plugin
In my case I wasted a lot of hours trying to understand, why after obfuscation certain class was failed to initialize with Exception:
java.lang.NoClassDefFoundError: Could not initialize class
After a huge amount of try-outs and testing, I found out that it relates to ProGuard bug, which was fixed in version 4.4.
The thing is that I had some final static string, which contained , which had different representation in compiled classes starting from JDK6u11. However, ProGuard dealt with it some old way.
March 7th, 2012 - 03:58
Excellent stuff from you, man. I’ve read your things before and you are just too awesome. I adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing
March 19th, 2012 - 13:42
It’s good to see this information in your post, I was looking the same but there was not any proper resource, thanks now I have the link which I was looking for my research.