public interface IDependencyResolver
| 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).
|
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
|
default List<GAV> |
storeMultiModule(InputStream inputStream)
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(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.
|
default List<GAV> |
storeMultiModule(org.apache.maven.model.Model model)
Store the given maven model 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.
|
GAV store(org.apache.maven.model.Model model) throws RepositoryException
model - The maven model to be storedRepositoryException - thrown when there was an issue storing the maven modelGAV store(InputStream inputStream) throws RepositoryException
inputStream - The inputstream for the maven module to be storedRepositoryException - thrown when there was an issue storing the maven modelList<GAV> storeMultiModule(InputStream inputStream, String relativePathOfGivenPomStream) throws RepositoryException
inputStream - The inputstream to the parent pom filerelativePathOfGivenPomStream - The relative path where the pom files for the child modules can be foundRepositoryException - thrown when there was an issue storing the maven modeldefault List<GAV> storeMultiModule(InputStream inputStream) throws RepositoryException
inputStream - The inputstream to the parent pom fileRepositoryException - thrown when there was an issue storing the maven modelList<GAV> storeMultiModule(org.apache.maven.model.Model model, String relativePathOfGivenPomModel) throws RepositoryException
model - The parent maven model of the multi module project to be storedrelativePathOfGivenPomModel - The relative path where the child modules can be foundRepositoryException - thrown when there was an issue storing the maven modeldefault List<GAV> storeMultiModule(org.apache.maven.model.Model model) throws RepositoryException
model - The parent maven model of the multi module project to be storedRepositoryException - thrown when there was an issue storing the maven modelSet<org.apache.maven.model.Dependency> getDependencies(GAV gav) throws RepositoryException, DepencyResolvingException
gav - The Groupid-Artifactid-Version for which the dependencies need to be resolvedRepositoryException - thrown when there was an issue storing the maven modelDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(InputStream... pomStreams) throws RepositoryException, DepencyResolvingException
pomStreams - Inputstreams to the pom files for which dependencies will be resolvedRepositoryException - thrown when there was an issue storing the maven modelDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(InputStream pomStream) throws RepositoryException, DepencyResolvingException
pomStream - Stream to the pom file for which dependencies will be resolvedRepositoryException - thrown when there was an issue storing the maven modelDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(GAV... gavs) throws DepencyResolvingException
gavs - List of Groupid-Artifact-Versions for which the dependencies will be resolvedDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(Collection<GAV> gavs) throws DepencyResolvingException
gavs - Collection of Groupid-Artifact-Versions for which the dependencies will be resolvedDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(Stream<GAV> gavs) throws DepencyResolvingException
gavs - Stream of Groupid-Artifact-Versions for which the dependencies will be resolvedDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(boolean excludeCorrespondingGavs, InputStream... pomStreams) throws DepencyResolvingException
excludeCorrespondingGavs - exclude the dependencies corresponding to the given maven projects from the resultpomStreams - Inputstreams to the pom files for which dependencies will be resolvedDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesSet<org.apache.maven.model.Dependency> getDependencies(Stream<GAV> gavs, Collection<GAV> gavsToExclude) throws DepencyResolvingException
gavs - 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 resultDepencyResolvingException - thrown when there was an issue obtaining the list of dependenciesCopyright © 2023. All rights reserved.