Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBDC0183FF for ; Tue, 12 Jan 2016 20:13:10 +0000 (UTC) Received: (qmail 36972 invoked by uid 500); 12 Jan 2016 20:12:47 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 36248 invoked by uid 500); 12 Jan 2016 20:12:47 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 35533 invoked by uid 99); 12 Jan 2016 20:12:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 20:12:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 934CB2C1F6C for ; Tue, 12 Jan 2016 20:12:46 +0000 (UTC) Date: Tue, 12 Jan 2016 20:12:46 +0000 (UTC) From: "Michael Osipov (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (MDEP-152) Analyze main and test dependencies separately MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MDEP-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Osipov closed MDEP-152. ------------------------------- Resolution: Auto Closed This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results. > Analyze main and test dependencies separately > ---------------------------------------------- > > Key: MDEP-152 > URL: https://issues.apache.org/jira/browse/MDEP-152 > Project: Maven Dependency Plugin > Issue Type: Improvement > Components: analyze > Affects Versions: 2.0 > Reporter: Benjamin Bentmann > > The current design of the maven-dependency-analyzer is mixing apples and oranges. If a POM declares an artifact as a compile time dependency but actually only requires it for test execution, the analysis would be fine because the analyzer ignores scopes. > Therefore, I suggest to split the analysis and its report into: > - used declared main dependencies > - used undeclared main dependencies > - unused declared main dependencies > - used declared test dependencies > - used undeclared test dependencies > - unused declared test dependencies > Analysis of the main dependencies would only include "target/classes" and artifacts with scope "compile"/"system"/"provided" (similar but not equal to ignoreNonCompile=true). Analysis of the test dependencies would consider "target/test-classes" and all available artifacts. As a special case, the group "unused declared test dependencies" should be post-processed by removing all artifacts whose scope is not "test". Otherwise, many of the main artifacts would be reported here. > Finally, a new parameter "excludeTest" should allow to skip the analysis of test dependencies. -- This message was sent by Atlassian JIRA (v6.3.4#6332)