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 String
Message used when an invalid expression pattern is found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 theconfiguration
object.
-
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 theconfiguration
object. 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:
-