public abstract class AbstractInstallMojo extends AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected RepositoryManager |
repositoryManager |
protected MavenSession |
session |
Constructor and Description |
---|
AbstractInstallMojo() |
Modifier and Type | Method and Description |
---|---|
protected File |
getLocalRepoFile(ProjectBuildingRequest buildingRequest,
Artifact artifact)
Gets the path of the specified artifact within the local repository.
|
protected File |
getLocalRepoFile(ProjectBuildingRequest buildingRequest,
org.apache.maven.project.artifact.ProjectArtifactMetadata metadata)
Gets the path of the specified artifact metadata within the local repository.
|
getLog, getPluginContext, setLog, setPluginContext
@Component protected RepositoryManager repositoryManager
@Parameter(defaultValue="${session}", required=true, readonly=true) protected MavenSession session
protected File getLocalRepoFile(ProjectBuildingRequest buildingRequest, Artifact artifact)
buildingRequest
- ProjectBuildingRequest
.artifact
- The artifact whose local repo path should be determined, must not be null
.null
.protected File getLocalRepoFile(ProjectBuildingRequest buildingRequest, org.apache.maven.project.artifact.ProjectArtifactMetadata metadata)
buildingRequest
- ProjectBuildingRequest
.metadata
- The artifact metadata whose local repo path should be determined, must not be null
.null
.Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.