Class DefaultProjectInstaller
java.lang.Object
org.apache.maven.shared.transfer.project.install.internal.DefaultProjectInstaller
- All Implemented Interfaces:
ProjectInstaller
@Component(role=ProjectInstaller.class)
class DefaultProjectInstaller
extends Object
implements ProjectInstaller
This will install a whole project into the appropriate repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArtifactInstallerprivate static final org.slf4j.Loggerprivate RepositoryManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddMetaDataFilesForArtifact(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.Artifact artifact, Collection<File> targetMetadataFiles) private FilegetLocalRepoFile(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.metadata.ArtifactMetadata metadata) Gets the path of the specified artifact metadata within the local repository.voidinstall(org.apache.maven.project.ProjectBuildingRequest buildingRequest, ProjectInstallerRequest installerRequest) This will install a single project which may contain several artifacts.private voidvalidateParameters(org.apache.maven.project.ProjectBuildingRequest buildingRequest, ProjectInstallerRequest installerRequest)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
installer
-
repositoryManager
-
-
Constructor Details
-
DefaultProjectInstaller
DefaultProjectInstaller()
-
-
Method Details
-
addMetaDataFilesForArtifact
private void addMetaDataFilesForArtifact(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.Artifact artifact, Collection<File> targetMetadataFiles) -
getLocalRepoFile
private File getLocalRepoFile(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.metadata.ArtifactMetadata metadata) Gets the path of the specified artifact metadata within the local repository. Note that the returned path need not exist (yet).- Parameters:
buildingRequest- The project building request, must not benull.metadata- The artifact metadata whose local repo path should be determined, must not benull.- Returns:
- The absolute path to the artifact metadata when installed, never
null.