def parse_line(line):
    """Parse line of tree file to extract dependency information"""
    line = line.rstrip().lstrip(' -+|\\')
    parts = line.split(':')
    scope = None
    classifier = None
    if len(parts) == 4:
        [gid, aid, pkg, version] = parts
    elif len(parts) == 5:
        [gid, aid, pkg, version, scope] = parts
    elif len(parts) == 6:
        [gid, aid, pkg, classifier, version, scope] = parts
    else:
        return None
    if pkg == "pom":
        return None
    return {"group_id": gid, "artifact_id": aid, "packaging": pkg,
            "classifier": classifier, "version": version, "scope": scope}