Class DefaultDependencyManagementImporter
java.lang.Object
org.apache.maven.internal.impl.model.DefaultDependencyManagementImporter
- All Implemented Interfaces:
DependencyManagementImporter
@Named
@Singleton
public class DefaultDependencyManagementImporter
extends Object
implements DependencyManagementImporter
Handles the import of dependency management from other models into the target model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
equals
(Collection<Exclusion> ce1, Collection<Exclusion> ce2) private boolean
equals
(Dependency d1, Dependency d2) private boolean
importManagement
(Model target, List<? extends DependencyManagement> sources, ModelBuilderRequest request, ModelProblemCollector problems) Imports the specified dependency management sections into the given target model.private String
toString
(Dependency dependency) (package private) static Dependency
updateWithImportedFrom
(Dependency dependency, DependencyManagement bom)
-
Constructor Details
-
DefaultDependencyManagementImporter
public DefaultDependencyManagementImporter()
-
-
Method Details
-
importManagement
public Model importManagement(Model target, List<? extends DependencyManagement> sources, ModelBuilderRequest request, ModelProblemCollector problems) Description copied from interface:DependencyManagementImporter
Imports the specified dependency management sections into the given target model.- Specified by:
importManagement
in interfaceDependencyManagementImporter
- Parameters:
target
- The model into which to import the dependency management section, must not benull
.sources
- The dependency management sections to import, may benull
.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.
-
toString
-
equals
-
equals
-
equals
-
updateWithImportedFrom
-