You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/07/14 18:26:00 UTC

[jira] [Updated] (MDEP-714) runtime dependencies reported as unused

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

Elliotte Rusty Harold updated MDEP-714:
---------------------------------------
    Description: 
Typical output when analyzing the maven-archetype-plugin:

[WARNING] Unused declared dependencies found:
[WARNING]    org.apache.ivy:ivy:jar:2.5.0:runtime

However since this is needed at runtime, possibly via reflection, it seems likely that it is used but the dependency analyzer can't figure this out.

Confirm and consider whether the plugin should simply never report runtime dependencies as unused. 

This is tricky because it's certainly possible that a runtime dependency is unused, but in practice it seems more likely than not to be a false positive.

  was:
Typical output:

[WARNING] Unused declared dependencies found:
[WARNING]    org.apache.ivy:ivy:jar:2.5.0:runtime

However since this is needed at runtime, possibly via reflection, it seems likely that it is used but the dependency analyzer can't figure this out.

Confirm and consider whether the plugin should simply never report runtime dependencies as unused. 

This is tricky because it's certainly possible that a runtime dependency is unused, but in practice it seems more likely than not to be a false positive.


> runtime dependencies reported as unused
> ---------------------------------------
>
>                 Key: MDEP-714
>                 URL: https://issues.apache.org/jira/browse/MDEP-714
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>            Reporter: Elliotte Rusty Harold
>            Priority: Major
>
> Typical output when analyzing the maven-archetype-plugin:
> [WARNING] Unused declared dependencies found:
> [WARNING]    org.apache.ivy:ivy:jar:2.5.0:runtime
> However since this is needed at runtime, possibly via reflection, it seems likely that it is used but the dependency analyzer can't figure this out.
> Confirm and consider whether the plugin should simply never report runtime dependencies as unused. 
> This is tricky because it's certainly possible that a runtime dependency is unused, but in practice it seems more likely than not to be a false positive.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)