update pom/ivy xml classpath update logic

when merging the entries from the xml dependencies file, restrict
removing of state .classpath entries to only those using the associated
classpath var (M2_REPO, IVY_REPO).