This has been killing me all day. I am working on android / java in eclipse.
This is what I want to do
I want to embed one of my libraries - DatabaseLibrary
within another of my libraries - LogicLibrary
Crucially - without exposing any of the methods in DatabaseLibrary to a 3rd party who has access to the LogicLibrary.
I have tried including it using the proguard-maven-plugin like this
<configuration>
<assembly>
<inclusions>
<inclusion>
<groupId>xxx</groupId><artifactId>DatabaseLibrary</artifactId><library>true</library>
</inclusion>
</inclusions>
</assembly>
However this includes all methods into the DatabaseLibrary and exposed them to a 3rd party.
I want my LogicLibrary to be able to call against the DatabaseLibrary without the 3rd party ever seeing it.
I have searched all over the web and it seems like something called an uber jar is what i need to do. However I have tried a few methods such as maven-assembly-plugin mentioned here https://stackoverflow.com/a/1834905/1312937
maven embed dependency artifact code in jar
However I have got no where with this, it looks like it is a maven 2 answer so maybe there is something different i need to do for maven 3?
Can anyone tell me if uberjar is the correct way for me to achieve my aims? If there are alternate patterns please let me know, im not tied into maven.