I have a project and a subproject there are apis in sub project which are accessed via main project.
First I compile the subproject into jar along with dependencies.