You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marius Grama (Jira)" <ji...@apache.org> on 2022/04/25 12:48:00 UTC

[jira] [Comment Edited] (MDEP-802) analyze-only fails to recognize `aws-java-sdk-core` as a compile-time dependency

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

Marius Grama edited comment on MDEP-802 at 4/25/22 12:47 PM:
-------------------------------------------------------------

[~sjaranowski]  it seems indeed pretty much similar to MDEP-791 

 

I see that the issue has been reopened. Is there a plan to fix this problem or is  https://issues.apache.org/jira/browse/MDEP-791?focusedCommentId=17519104&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17519104 the way to go for now?


was (Author: JIRAUSER288566):
[~sjaranowski]  it seems indeed pretty much similar to MDEP-791 

 

I see that the issue has been reopened. Is there a plan to fix this problem or is the workaround the way to go for now?

> analyze-only fails to recognize `aws-java-sdk-core` as a compile-time dependency
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-802
>                 URL: https://issues.apache.org/jira/browse/MDEP-802
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: Marius Grama
>            Priority: Major
>
> The maven-dependency-plugin fails to recognize `aws-java-sdk-core` as a compile-time dependency, because we only explicitly use a class from `aws-java-sdk-glue`, which in turn extends from a class from `aws-java-sdk-core`.
>  
> In order to cope with this problem, we set `aws-java-sdk-core` as an ignored dependency:
>  
> {code}
>                         <artifactId>maven-dependency-plugin</artifactId>
>                         <configuration>
>                             <ignoredNonTestScopedDependencies>
>                                 <!-- dependency plugin fails to recognize aws-java-sdk-core as a compile-time dependency, because
>                                      we only explicitly use a class from aws-java-sdk-glue, which in turn extends from a class from
>                                      aws-java-sdk-core -->
>                                 <ignoredDependency>com.amazonaws:aws-java-sdk-core</ignoredDependency>
>                             </ignoredNonTestScopedDependencies>
>                         </configuration>
>                     </plugin>
> {code}
>  
> Here is the commit showcasing the issue:
>  
> [https://github.com/trinodb/trino/pull/11550/commits/22f227bb5721b1ea4783c6a58111ef5007f75316]
>  
> Ideally we'd like not having to deal with this false positive problem.



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