(treeRoot)
| 874 | |
| 875 | |
| 876 | def getPOMcoordinate(treeRoot): |
| 877 | namespace = '{http://maven.apache.org/POM/4.0.0}' |
| 878 | groupId = treeRoot.find('%sgroupId' % namespace) |
| 879 | if groupId is None: |
| 880 | groupId = treeRoot.find('{0}parent/{0}groupId'.format(namespace)) |
| 881 | groupId = groupId.text.strip() |
| 882 | artifactId = treeRoot.find('%sartifactId' % namespace).text.strip() |
| 883 | version = treeRoot.find('%sversion' % namespace) |
| 884 | if version is None: |
| 885 | version = treeRoot.find('{0}parent/{0}version'.format(namespace)) |
| 886 | version = version.text.strip() |
| 887 | packaging = treeRoot.find('%spackaging' % namespace) |
| 888 | packaging = 'jar' if packaging is None else packaging.text.strip() |
| 889 | return groupId, artifactId, packaging, version |
| 890 | |
| 891 | |
| 892 | def verifyMavenSigs(tmpDir, artifacts, keysFile): |
no test coverage detected
searching dependent graphs…