[
https://issues.apache.org/jira/browse/MENFORCER-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16707495#comment-16707495
]
Niklas Matthies commented on MENFORCER-276:
-------------------------------------------
There is also the reverse situation: A test dependency may hide an upper-bound
version violation in compile/runtime scope. The proposed feature would be
useful for projects that want to ensure they don't have such violations in
compile/runtime scope. Ideally one would be able to configure multiple
executions of the rule with different scopes within the same build, to catch
violations both with and without test scope.
> Allow ignoring dependency scopes in RequireUpperBoundDeps
> ---------------------------------------------------------
>
> Key: MENFORCER-276
> URL: https://issues.apache.org/jira/browse/MENFORCER-276
> Project: Maven Enforcer Plugin
> Issue Type: New Feature
> Reporter: Oleg Nenashev
> Priority: Major
>
> We have recently adopted RequireUpperBoundDeps in the Jenkins project
> (https://github.com/jenkinsci/plugin-pom/pull/67). In order to implement it,
> [[email protected]] added a support of ignoring particular dependencies in
> MENFORCER-273.
> Sometimes we declare dependencies between plugins for testing purposes
> (scope=test), and in such case RequireUpperBoundDeps fails the build if there
> is a test dependency conflicting with the main code. Although it may cause
> instability of tests (including false positive results), it does not really
> impact the distributable package in our case.
> I propose to add another option for filtering of dependency scopes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)