classMavenCoord#

class MavenCoord(
group: str,
artifact: str,
version: str,
classifier: str | None = None,
extension: str = 'jar',
)#

A parsed coordinate such as group:artifact:version:classifier@extension.

group#

The group id.

Type:

str

artifact#

The artifact id.

Type:

str

version#

The version.

Type:

str

classifier#

The classifier, or None.

Type:

str | None

extension#

The file extension.

Type:

str

classmethod parse(
coord: str,
) → MavenCoord#

Parse a coordinate.

Parameters:

coord (str) – The coordinate. The classifier and extension are optional.

Returns:

The parsed coordinate.

Raises:

ValueError – The coordinate is malformed.

Return type:

MavenCoord

property path: str#

The file’s path inside a Maven repository.