| /* |
| * 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. |
| */ |
| |
| package npanday.resolver; |
| |
| import com.google.common.collect.Sets; |
| import npanday.resolver.ArtifactResolvingContributor; |
| import npanday.resolver.resolvers.GacResolver; |
| import org.apache.maven.artifact.Artifact; |
| import org.apache.maven.artifact.metadata.ArtifactMetadataSource; |
| import org.apache.maven.artifact.repository.ArtifactRepository; |
| import org.apache.maven.artifact.resolver.ArtifactNotFoundException; |
| import org.apache.maven.artifact.resolver.ArtifactResolutionException; |
| import org.apache.maven.artifact.resolver.ArtifactResolutionResult; |
| import org.apache.maven.artifact.resolver.ArtifactResolver; |
| import org.apache.maven.artifact.resolver.DebugResolutionListener; |
| import org.apache.maven.artifact.resolver.WarningResolutionListener; |
| import org.apache.maven.artifact.resolver.filter.AndArtifactFilter; |
| import org.apache.maven.artifact.resolver.filter.ArtifactFilter; |
| import org.codehaus.plexus.PlexusConstants; |
| import org.codehaus.plexus.PlexusContainer; |
| import org.codehaus.plexus.component.repository.exception.ComponentLookupException; |
| import org.codehaus.plexus.context.Context; |
| import org.codehaus.plexus.context.ContextException; |
| import org.codehaus.plexus.logging.AbstractLogEnabled; |
| import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable; |
| import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; |
| import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; |
| |
| import java.util.ArrayList; |
| import java.util.Collections; |
| import java.util.List; |
| import java.util.Map; |
| import java.util.Set; |
| |
| /** |
| * NPanday-flavored implementation of the Artifact resolver. |
| * |
| * @author <a href="mailto:me@lcorneliussen.de>Lars Corneliussen, Faktum Software</a> |
| */ |
| public interface NPandayArtifactResolver |
| extends ArtifactResolver |
| { |
| /** |
| * Should never try to resolve things that would get excluded by this filter. |
| * @param filter |
| */ |
| public void initializeWithFilter(ArtifactFilter filter); |
| |
| /** |
| * All artifacts that have been resolved outside of the maven |
| * core, since they might need special treatment after resolving. |
| * |
| * Create a set intersection with the resulting artifacts you get |
| * from {@link ArtifactResolver#resolveTransitively} in order to do |
| * something with the ones relevant to your context. |
| */ |
| public Set<Artifact> getCustomResolveCache(); |
| |
| /** |
| * Custom artifacts dependencies resolved by contributors. |
| */ |
| public Set<Artifact> getCustomDependenciesCache(); |
| } |
| |