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

2021-04-11 Thread Michael Osipov (Jira)


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

Michael Osipov commented on MDEP-714:
-

I don't see as a bug becuase it is rooted in the nature of the system. An 
improvement can be done to remove those deps from analysis.

> runtime dependencies reported as unused
> ---
>
> Key: MDEP-714
> URL: https://issues.apache.org/jira/browse/MDEP-714
> Project: Maven Dependency Plugin
>  Issue Type: New Feature
>  Components: analyze
>Reporter: Elliotte Rusty Harold
>Assignee: Michael Osipov
>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)


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

2021-02-18 Thread Lars Knickrehm (Jira)


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

Lars Knickrehm commented on MDEP-714:
-

As I already proposed a change, is there anything I can do to push this further?

> 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)


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

2021-01-02 Thread Lars Knickrehm (Jira)


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

Lars Knickrehm commented on MDEP-714:
-

Recently I came over the same problem and created a Pull Request at 
[https://github.com/apache/maven-dependency-plugin/pull/123]. That change 
introduces a new boolean property, called {{ignoreUnusedRuntime}}, and simply 
suppresses runtime scoped unused dependencies if set to {{true}}.

I'm not familiar with Apache project contribution. Therefore just take the Pull 
Request the way you like or tell me what to do. Feel free to discuss this 
solution together and with me.

I'd just be glad to see this or a similar functionality in a future Maven 
Dependency Plugin version.
Thanks.

> 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)


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

2020-07-15 Thread Michael Osipov (Jira)


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

Michael Osipov commented on MDEP-714:
-

This has always be a problem, for instance when used in Spring {{beans.xml}}. I 
wouldn't generally remove this, but either improve it or document this issue.

> 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)


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

2020-07-14 Thread Elliotte Rusty Harold (Jira)


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

Elliotte Rusty Harold commented on MDEP-714:


n ---
[WARNING] Used undeclared dependencies found:
[WARNING]org.apache.maven:maven-aether-provider:jar:3.0:runtime
[WARNING]org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile
[WARNING]commons-collections:commons-collections:jar:3.2.1:compile
[WARNING]org.hamcrest:hamcrest-core:jar:1.3:test
[WARNING]org.sonatype.aether:aether-impl:jar:1.7:compile
[WARNING] Unused declared dependencies found:
[WARNING]org.apache.ivy:ivy:jar:2.5.0:runtime
[WARNING]org.sonatype.aether:aether-connector-file:jar:1.7:test
[WARNING]org.sonatype.aether:aether-connector-wagon:jar:1.7:test
[WARNING]org.apache.maven.wagon:wagon-http:jar:3.3.3:test


> 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)