revert(java): stop supporting of test
scope for pom.xml
files [backport: release/v0.55]
#7489
+7
−51
test
scope for pom.xml
files [backport: release/v0.55]
#7489