Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-M1
-
None
Description
MENFORCER-152 added rule for ban duplicate depndencies, but dependencyManagement section does not checked correctly
codeĀ
if ( model.getDependencyManagement() != null ) { List<Dependency> managementDependencies = model.getDependencies(); Map<String, Integer> duplicateManagementDependencies = validateDependencies( managementDependencies );
should be written as
if ( model.getDependencyManagement() != null ) { List<Dependency> managementDependencies = model.getDependencyManagement().getDependencies(); Map<String, Integer> duplicateManagementDependencies = validateDependencies( managementDependencies );
and same fix should be applied to
profiles
checking code
Attachments
Issue Links
- links to