public class ResolveDependencies extends Object implements IDependencyResolver
| Constructor and Description |
|---|
ResolveDependencies(IRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.maven.model.Dependency> |
getDependencies(boolean excludeCorrespondingGavs,
InputStream... pomStreams)
Calculate and return the dependencies of the maven artifacts loaded from the given InputStreams if excludeCorrespondingGavs
is true then the returned dependencies will not include the resolved GAV's from the inputstreams.
|
Set<org.apache.maven.model.Dependency> |
getDependencies(Collection<GAV> gavs)
Calculate and return the dependencies of the maven artifacts with the given GAV's (GroupId, ArtifactId, Version).
|
Set<org.apache.maven.model.Dependency> |
getDependencies(GAV... gavs)
Calculate and return the dependencies of the maven artifacts with the given GAV's (GroupId, ArtifactId, Version).
|
Set<org.apache.maven.model.Dependency> |
getDependencies(GAV gav)
Calculate and return the dependencies of the maven artifact with the given GAV (GroupId, ArtifactId, Version).
|
Set<org.apache.maven.model.Dependency> |
getDependencies(InputStream... pomStreams)
Calculate and return the dependencies of the maven projects for which the inputstreams of the pom files are given.
|
Set<org.apache.maven.model.Dependency> |
getDependencies(InputStream pomStream)
Calculate and return the dependencies of the maven project for which the inputstream of the pom file is given.
|
Set<org.apache.maven.model.Dependency> |
getDependencies(Stream<GAV> gavs)
Calculate and return the dependencies of the maven artifacts with the given GAV's (GroupId, ArtifactId, Version).
|
Set<org.apache.maven.model.Dependency> |
getDependencies(Stream<GAV> gavs,
Collection<GAV> gavsToExclude)
Calculate and return the dependencies of the maven artifacts with the given GAV's (GroupId, ArtifactId, Version).
|
IPomStreamProvider |
getPomStreamProvider() |
boolean |
isIgnoreIconsistencies() |
ResolveDependencies |
setIgnoreIconsistencies(boolean ignoreIconsistencies) |
ResolveDependencies |
setPomStreamProvider(IPomStreamProvider pomStreamProvider) |
GAV |
store(InputStream inputStream)
Read the maven model from the given input stream and store it
|
GAV |
store(org.apache.maven.model.Model model)
Store a single maven model
|
List<GAV> |
storeMultiModule(InputStream inputStream,
String relativePathOfGivenPomStream)
Store the given maven model input stream for later processing, inspect whether the maven project is a multi module project If
so follow the modules and also store all child modules.
|
List<GAV> |
storeMultiModule(org.apache.maven.model.Model model,
String relativePathOfGivenPomModel)
Store the given maven model input stream for later processing, inspect whether the maven project is a multi module project If
so follow the modules and also store all child modules.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstoreMultiModule, storeMultiModulepublic ResolveDependencies(IRepository repository)
public boolean isIgnoreIconsistencies()
public ResolveDependencies setIgnoreIconsistencies(boolean ignoreIconsistencies)
public IPomStreamProvider getPomStreamProvider()
public ResolveDependencies setPomStreamProvider(IPomStreamProvider pomStreamProvider)
public List<GAV> storeMultiModule(InputStream inputStream, String relativePathOfGivenPomStream)
IDependencyResolverstoreMultiModule in interface IDependencyResolverinputStream - The inputstream to the parent pom filerelativePathOfGivenPomStream - The relative path where the pom files for the child modules can be foundpublic List<GAV> storeMultiModule(org.apache.maven.model.Model model, String relativePathOfGivenPomModel)
IDependencyResolverstoreMultiModule in interface IDependencyResolvermodel - The parent maven model of the multi module project to be storedrelativePathOfGivenPomModel - The relative path where the child modules can be foundpublic GAV store(org.apache.maven.model.Model model)
IDependencyResolverstore in interface IDependencyResolvermodel - The maven model to be storedpublic GAV store(InputStream inputStream)
IDependencyResolverstore in interface IDependencyResolverinputStream - The inputstream for the maven module to be storedpublic Set<org.apache.maven.model.Dependency> getDependencies(InputStream... pomStreams)
IDependencyResolvergetDependencies in interface IDependencyResolverpomStreams - Inputstreams to the pom files for which dependencies will be resolvedpublic Set<org.apache.maven.model.Dependency> getDependencies(boolean excludeCorrespondingGavs, InputStream... pomStreams)
IDependencyResolvergetDependencies in interface IDependencyResolverexcludeCorrespondingGavs - exclude the dependencies corresponding to the given maven projects from the resultpomStreams - Inputstreams to the pom files for which dependencies will be resolvedpublic Set<org.apache.maven.model.Dependency> getDependencies(InputStream pomStream)
IDependencyResolvergetDependencies in interface IDependencyResolverpomStream - Stream to the pom file for which dependencies will be resolvedpublic Set<org.apache.maven.model.Dependency> getDependencies(Collection<GAV> gavs)
IDependencyResolvergetDependencies in interface IDependencyResolvergavs - Collection of Groupid-Artifact-Versions for which the dependencies will be resolvedpublic Set<org.apache.maven.model.Dependency> getDependencies(Stream<GAV> gavs)
IDependencyResolvergetDependencies in interface IDependencyResolvergavs - Stream of Groupid-Artifact-Versions for which the dependencies will be resolvedpublic Set<org.apache.maven.model.Dependency> getDependencies(Stream<GAV> gavs, Collection<GAV> gavsToExclude)
IDependencyResolvergetDependencies in interface IDependencyResolvergavs - Stream of Groupid-Artifact-Versions for which the dependencies will be resolvedgavsToExclude - Dependencies with GAV's listed in gavsToExclude will not be included in the resultpublic Set<org.apache.maven.model.Dependency> getDependencies(GAV... gavs)
IDependencyResolvergetDependencies in interface IDependencyResolvergavs - List of Groupid-Artifact-Versions for which the dependencies will be resolvedpublic Set<org.apache.maven.model.Dependency> getDependencies(GAV gav)
IDependencyResolvergetDependencies in interface IDependencyResolvergav - The Groupid-Artifactid-Version for which the dependencies need to be resolvedCopyright © 2022. All rights reserved.