def METHOD_NAME(tags):
    coordinates = []
    for tag in tags:
        if tag == "maven:compile_only":
            return []
        if tag.startswith(MAVEN_PREFIX):
            coordinates.append(tag[len(MAVEN_PREFIX):])
    if len(coordinates) > 1:
        fail("Zero or one set of coordinates should be defined: %s" % coordinates)
    return coordinates[0] if len(coordinates) else None