fix for java sample app dependencies

removed dependences from the fixed libraries and using the plugins