Class ResolvedProjectDependencies

java.lang.Object
org.codehaus.mojo.license.api.ResolvedProjectDependencies

public class ResolvedProjectDependencies extends Object
Copies of the project's dependency sets. AddThirdParty needs to load dependencies only for the single project it is run for, while AggregateAddThirdParty needs to load dependencies for the parent project, as well as all child projects in the reactor. The aggregator goal replaces all reactor projects with their direct dependencies, to avoid trying to load artifacts for projects that haven't been built/published yet. This is necessary in cases where one child project A in a reactor depends on another project B in the same reactor. Since B is not necessarily built/published, the plugin needs to replace B with its dependencies when processing A. This field stores that modified view of the project's dependencies.
  • Constructor Details

    • ResolvedProjectDependencies

      public ResolvedProjectDependencies(Set<org.apache.maven.artifact.Artifact> allDependencies, Set<org.apache.maven.artifact.Artifact> directDependencies)
  • Method Details

    • getAllDependencies

      public Set<org.apache.maven.artifact.Artifact> getAllDependencies()
    • getDirectDependencies

      public Set<org.apache.maven.artifact.Artifact> getDirectDependencies()