Ok, this is a rather late answer, but if someone crosses, maybe this will help. I will give an example and explain this. jarjar can be used to repack java libraries. it can be used to change the namespace, for example, org.apache.common.codec needs to be changed to some_random_name.org.apache.common.codec. Download the jarjar from the jarjar download site, later insert the jar file you want to modify (myinjar.jar), and load the jarjar in one folder and run this java -jar jarjar-1.4.jar process myrules.txt myinjar.jar myoutjar.jar in myrules.txt add these lines
rule org.apache.commons.codec.** some_random_name.org.apache.commons.codec.@1
the output of myoutjar.jar will be saved in one folder and you can use it in your project without conflicts
krishna chaitanya
source share