Commits

ryanackley committed 9628eb0

Handled the case where the groupId is specified by the parent

  • Participants
  • Parent commits 6350a8c

Comments (0)

Files changed (1)

File AtlassianPluginProject.js

 			try{
 				var p = new DOMParser();
 				var pom = p.parseFromString(pomText, "text/xml");
-				var groupId = pom.querySelector('project > groupId').textContent;
+				var groupElement = pom.querySelector('project > groupId') || pom.querySelector('project > parent > groupId');
+				var groupId = groupElement.textContent;
 				var artifactId = pom.querySelector('project > artifactId').textContent;
 			}
 			catch(e){