Class LicensedArtifactResolver
java.lang.Object
org.codehaus.mojo.license.download.LicensedArtifactResolver
A tool to deal with dependencies of a project.
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMessage used when an invalid expression pattern is found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidloadProjectDependencies(ResolvedProjectDependencies artifacts, MavenProjectDependenciesConfigurator configuration, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, Map<String, LicensedArtifact> result, boolean extendedInfo, List<String> licenseMerges) For a givenproject, obtain the universe of its dependencies after applying transitivity and filtering rules given in theconfigurationobject.
-
Field Details
-
INVALID_PATTERN_MESSAGE
Message used when an invalid expression pattern is found.- See Also:
-
-
Constructor Details
-
LicensedArtifactResolver
public LicensedArtifactResolver()
-
-
Method Details
-
loadProjectDependencies
public void loadProjectDependencies(ResolvedProjectDependencies artifacts, MavenProjectDependenciesConfigurator configuration, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, Map<String, LicensedArtifact> result, boolean extendedInfo, List<String> licenseMerges) For a givenproject, obtain the universe of its dependencies after applying transitivity and filtering rules given in theconfigurationobject. Result is given in a map where keys are unique artifact id- Parameters:
artifacts- Dependenciesconfiguration- the configurationremoteRepositories- remote repositories used to resolve dependenciesresult- Map with Key/Value = PluginID/LicensedArtifactlicenseMerges- List of license names to merge.- See Also:
-