I have a problem with Android libraries.
I would like use the method Hex.encodeHexString(Byte Array) from the library org.apache.commons.codec.binary.Hex (version 1
Regarding nbe_42's maven shade plugin, where the plugin block is put in the pom.xml file is very important or maven will miss it.
What worked for me was to put it at the end of the
block in pom.xml:
{all other plugins}
...
{shade plugin}
Originally I had it at the start of the block and maven did not run it.
To create the .jar file download the commons-codec-1.8-src.zip source .zip archive from apache.org. Unpack it. The pom.xml file will be in the base directory of the archive. Insert nbe_42's plugin block in the pom.xml file as described above and run:
mvn install
This will build, test, replace and install the plugin for you.
Output on success should look something like this:
[INFO] --- maven-shade-plugin:2.2:shade (default) @ commons-codec ---
[INFO] Replacing original artifact with shaded artifact.
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
...`