blob: bd59823ab9a04f33ca6b824a117f34149e26917a [file] [log] [blame]
package org.apache.maven.shared.project.install;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.IOException;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.project.ProjectBuildingRequest;
import org.apache.maven.shared.artifact.install.ArtifactInstallerException;
/**
* This defines the interface to install a single Maven Project.
*
* @author Karl Heinz Marbaise <a href="mailto:khmarbaise@apache.org">khmarbaise@apache.org</a>
*/
public interface ProjectInstaller
{
/**
* This will install a single project which may contain several artifacts. Those artifacts will be installed into
* the appropriate repository.
*
* @param projectBuildingRequest {@link ProjectBuildingRequest}
* @param projectInstallerRequest {@link ProjectInstallerRequest}
* @param artifactRepository {@link ArtifactRepository}
* @throws IOException In case of problem to install project.
* @throws ArtifactInstallerException In case of problems to install artifacts.
* @throws IllegalArgumentException In case of no file has been assigned.
*/
void installProject( ProjectBuildingRequest projectBuildingRequest, ProjectInstallerRequest projectInstallerRequest,
ArtifactRepository artifactRepository )
throws IOException, ArtifactInstallerException, IllegalArgumentException;
}