Added java dependency version in tests pom file and generate-sources scope.