"Select POM",
"Please select the project you wish to add the dependency for:");
if (pomUrl == null || pomUrl.trim().length() == 0)
return;
final PomModelManager modelMgr = PomModelManager.getInstance(project);
final PsiProject psi = modelMgr.getPsiProject(pomUrl);
final PsiDependencies deps = psi.getDependencies();
final RepoPathElement[] artifacts = getSelectedItems(RepoPathElement.LEVEL_VERSION);
for (RepoPathElement pathElement : artifacts) {
final int row = deps.appendRow();
deps.setGroupId(row, pathElement.getGroupId());