All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.mojo.license.DependenciesTool Maven / Gradle / Ivy

There is a newer version: 1.6.3
Show newest version
/**
 * Copyright 2010-2012 The Kuali Foundation
 *
 * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
 *
 * 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.
 */
package org.codehaus.mojo.license;

import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.project.MavenProject;

import java.util.List;
import java.util.SortedMap;

/**
 * A tool to deal with dependencies of a project.
 *
 * @author tchemit 
 * @since 1.0
 */
public interface DependenciesTool
{

    /**
     * For a given {@code project}, obtain the universe of his dependencies after applying transitivity and
     * filtering rules given in the {@code configuration} object.
     * 

* Result is given in a map where keys are unique artifact id * * @param project the project to scann * @param configuration the configuration * @param localRepository local repository used to resolv dependencies * @param remoteRepositories remote repositories used to resolv dependencies * @param cache a optional cache where to keep resolved dependencies * @return the map of resolved dependencies indexed by their unique id. * @see MavenProjectDependenciesConfigurator */ SortedMap loadProjectDependencies( MavenProject project, MavenProjectDependenciesConfigurator configuration, ArtifactRepository localRepository, List remoteRepositories, SortedMap cache ); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy