You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/06/24 07:11:00 UTC

[jira] [Updated] (MENFORCER-424) Maven enforcer rule which checks that all dependencies in dependencyManagement don't have an explicit scope set

     [ https://issues.apache.org/jira/browse/MENFORCER-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated MENFORCER-424:
--------------------------------------
    Description: 
Setting the scope in the dependencyManagement is an anti-pattern and may lead to surprising results during classpath creation. Compare also with the discussion in https://github.com/apache/maven-apache-parent/pull/63#discussion_r788361219.

I propose to add a new rule with name {{banDependencyManagementScope}}.

Probably scope {{import}} should be accepted though, because it is a special case.

  was:
Setting the scope in the dependencyManagement is an anti-pattern and may lead to surprising results during classpath creation. Compare also with the discussion in https://github.com/apache/maven-apache-parent/pull/63#discussion_r788361219.

I propose to add a new rule with name {{banDependencyManagementScope}}.


> Maven enforcer rule which checks that all dependencies in dependencyManagement don't have an explicit scope set
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MENFORCER-424
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-424
>             Project: Maven Enforcer Plugin
>          Issue Type: New Feature
>          Components: Standard Rules
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Setting the scope in the dependencyManagement is an anti-pattern and may lead to surprising results during classpath creation. Compare also with the discussion in https://github.com/apache/maven-apache-parent/pull/63#discussion_r788361219.
> I propose to add a new rule with name {{banDependencyManagementScope}}.
> Probably scope {{import}} should be accepted though, because it is a special case.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)