MCPcopy Create free account
hub / github.com/apache/solr / getPOMcoordinate

Function getPOMcoordinate

dev-tools/scripts/smokeTestRelease.py:876–889  ·  view source on GitHub ↗
(treeRoot)

Source from the content-addressed store, hash-verified

874
875
876def 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
892def verifyMavenSigs(tmpDir, artifacts, keysFile):

Callers 1

Calls 3

stripMethod · 0.80
findMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…