How to repackage HttpClient 4.3.1 and remove dependencies on commons-logging?
问题 I want to repackage apache's httpclient lib to ship it with an android app (like https://code.google.com/p/httpclientandroidlib/ but with HttpClient 4.3.1) Therefore, I downloaded the httpclient 4.3.1 jar (includes all its dependencies) by hand and used jarjar to repackage it: x@x$: cd libs && for f in *.jar; do java -jar ../jarjar-1.4.jar process ../rules.txt $f out/my-$f; done with rules.txt : rule org.apache.http.** my.repackaged.org.apache.http.@1 Then I used ant to put the output