Description of problem: "%pom_change_dep :old :new" removes <optional> element if it's present there. Since the information whether given dependency is optional is significant now, the macro should try to preserve it. Version-Release number of selected component (if applicable): javapackages-tools-4.3.2-6.fc22.noarch
Should be fixed in upstream commit b42ca5f
Fixed in Rawhide.