maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kudrevatykh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MENFORCER-301) banDuplicatePomDependencyVersions does not check managementDependencies
Date Mon, 16 Apr 2018 08:55:00 GMT
Alexander Kudrevatykh created MENFORCER-301:
-----------------------------------------------

             Summary: banDuplicatePomDependencyVersions does not check managementDependencies
                 Key: MENFORCER-301
                 URL: https://issues.apache.org/jira/browse/MENFORCER-301
             Project: Maven Enforcer Plugin
          Issue Type: Bug
          Components: Standard Rules
    Affects Versions: 3.0.0-M1
            Reporter: Alexander Kudrevatykh


MENFORCER-152 added rule for ban duplicate depndencies, but dependencyManagement section does
not checked correctly codeĀ  \{code:java} if ( model.getDependencyManagement() != null ) \{
List<Dependency> managementDependencies = model.getDependencies(); Map<String, Integer>
duplicateManagementDependencies = validateDependencies( managementDependencies );{code} should
be written as \{code} if ( model.getDependencyManagement() != null ) \{ List<Dependency>
managementDependencies = model.getDependencyManagement().getDependencies(); Map<String,
Integer> duplicateManagementDependencies = validateDependencies( managementDependencies
);{code} and same fix should be applied to \{noformat}profiles\{noformat} checking code



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message