class documentation

class MavenRepoArtifact(StateProvider):

Constructor: MavenRepoArtifact(artifact, repo)

View In Hierarchy

Combines a MavenArtifact with a (local) repository URL prefix to represent a (locally) installed artifact.

Maven calls stuff in its local repository, typically ~/.m2/repository, "installed" as opposed to "locally published". But see publishLocal.

Method __init__ Creates the artifact/repository combo.
Method fullPath Returns the full path to the artifact where it ends up in the repository.
Method provideState Provides state over the whole directory where the artifact ends up to include source files and pom and whatnot.
Instance Variable artifact to be installed/published
Instance Variable repo maven repository path
def __init__(self, artifact: MavenArtifact, repo: Path = Path.home() / '.m2' / 'repository'):

Creates the artifact/repository combo.

Parameters
artifact:MavenArtifactto be installed/published.
repo:Pathmaven repository path.
def fullPath(self) -> Path:

Returns the full path to the artifact where it ends up in the repository.

def provideState(self) -> str:

Provides state over the whole directory where the artifact ends up to include source files and pom and whatnot.

artifact: MavenArtifact =

to be installed/published

repo: Path =

maven repository path